dockerhub
This commit is contained in:
parent
84bf40220c
commit
729428b783
1 changed files with 7 additions and 20 deletions
27
.github/workflows/docker-image.yml
vendored
27
.github/workflows/docker-image.yml
vendored
|
@ -8,23 +8,10 @@ jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
-
|
- uses: actions/checkout@v3
|
||||||
name: Checkout
|
- name: Build the Docker image
|
||||||
uses: actions/checkout@v2
|
run: docker build . --file docker/Dockerfile -t lbry/scribe:master
|
||||||
-
|
- name: Docker login
|
||||||
name: Login to Docker Hub
|
uses: docker login -u="${{ secrets.DOCKERHUB_USERNAME }}" -p="${{ secrets.DOCKERHUB_TOKEN }}"
|
||||||
uses: docker/login-action@v1
|
- name: Push to dockerhub
|
||||||
with:
|
uses: docker push lbry/scribe:master
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
||||||
-
|
|
||||||
name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v1
|
|
||||||
-
|
|
||||||
name: Build and push
|
|
||||||
uses: docker/build-push-action@v2
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
file: ./docker/Dockerfile
|
|
||||||
push: true
|
|
||||||
tags: lbry/scribe:master
|
|
||||||
|
|
Loading…
Reference in a new issue