test dockerhub ci

This commit is contained in:
Jack Robison 2022-04-14 13:10:32 -04:00
parent 648e782df6
commit 21d983032e
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -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 }}