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 ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
login:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Build the Docker image
|
||||
run: docker build . --file docker/Dockerfile -t lbry/scribe:master
|
||||
- name: Login to dockerhub
|
||||
run: echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
|
||||
- name: Push image
|
||||
run: docker push lbry/scribe:master
|
||||
-
|
||||
name: Login to Docker Hub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
Loading…
Reference in a new issue