-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documentation for building an image with the new GH Action
* update readme and comments
- Loading branch information
Showing
2 changed files
with
13 additions
and
3 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Build and publish image | |
|
||
on: | ||
push: | ||
branches: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
|
@@ -26,12 +26,13 @@ jobs: | |
${{ runner.os }}- | ||
- uses: nelonoel/[email protected] | ||
|
||
- name: Set outputs | ||
id: vars | ||
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | ||
|
||
#build the image and push it to the registry | ||
|
||
#build the image and push it to the registry | ||
- uses: mr-smithers-excellent/docker-build-push@v5 | ||
name: push-container-image | ||
with: | ||
|
@@ -41,4 +42,5 @@ jobs: | |
buildArgs: BRANCH=${BRANCH_NAME},COMMIT=${{ steps.vars.outputs.sha_short }},VERSION=${{ steps.vars.outputs.sha_short }} | ||
username: ${{ github.repository }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
# if the branch is main, add the latest tag | ||
addLatest: ${{ github.ref == 'refs/heads/main' }} |
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