Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mjp91 committed Jan 4, 2021
1 parent ae90e28 commit abb52fc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,16 @@ jobs:
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Build the Docker image
run: docker build . --file Dockerfile --tag mjp91/phoenix:$RELEASE_VERSION
- name: Docker Login
# You may pin to the exact commit or the version.
# uses: docker/login-action@f3364599c6aa293cdc2b8391b1b56d0c30e45c8a
uses: docker/[email protected]
with:
# Username used to log against the Docker registry
username: ${{ secrets.DOCKER_HUB_USERNAME }}
# Password or personal access token used to log against the Docker registry
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
# Log out from the Docker registry at the end of a job
logout: true
- name: Push the Docker image
run: docker push mjp91/phoenix:$RELEASE_VERSION

0 comments on commit abb52fc

Please sign in to comment.