-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |