Skip to content

Commit

Permalink
ci: follow comment on docker/build-push-action/issues/100
Browse files Browse the repository at this point in the history
  • Loading branch information
rubencabrera committed Nov 20, 2020
1 parent 2a03ce0 commit 7acbdc8
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,20 @@ on:
branches: master

jobs:
login:
runs-on: ubuntu-latest
steps:
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: rubencabrera/dinaip:latest
-
name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
build:
- name: Checkout step
uses: actions/checkout@v2
- uses: docker/setup-buildx-action@v1
- name: Login to Dockerhub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: rubencabrera/dinaip:latest
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit 7acbdc8

Please sign in to comment.