Skip to content

Commit

Permalink
Update dockerbuild-dev.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
elmerfdz authored Feb 6, 2023
1 parent 5bad388 commit 88d5479
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/dockerbuild-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ on:
env:
DOCKER_CLI_EXPERIMENTAL: enabled
IMAGE_NAME: ghactiontest
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PWD }}

jobs:
build-and-push:
Expand Down Expand Up @@ -45,6 +47,6 @@ jobs:
- name: Publish to Docker Hub
run: |
docker login -u "${{ secrets.DOCKER_USER }}" -p "${{ secrets.DOCKER_PWD }}" --password-stdin
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
docker push ${{ env.IMAGE_NAME }}:latest
docker push ${{ env.IMAGE_NAME }}:latest-${{ env.GITHUB_SHA }}

0 comments on commit 88d5479

Please sign in to comment.