test dockerhub ci
This commit is contained in:
parent
648e782df6
commit
21d983032e
1 changed files with 7 additions and 8 deletions
15
.github/workflows/docker-image.yml
vendored
15
.github/workflows/docker-image.yml
vendored
|
@ -5,13 +5,12 @@ on:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
login:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
-
|
||||||
- name: Build the Docker image
|
name: Login to Docker Hub
|
||||||
run: docker build . --file docker/Dockerfile -t lbry/scribe:master
|
uses: docker/login-action@v1
|
||||||
- name: Login to dockerhub
|
with:
|
||||||
run: echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
- name: Push image
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
run: docker push lbry/scribe:master
|
|
Loading…
Reference in a new issue