-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tagging for Releases/Latest/Master (#56)
* tagging master, adding release tagging, currently fork * removed fork * changed job name to release * changed trigger to use release * removed latest conditionals Co-authored-by: Derek Wasinger <[email protected]>
- Loading branch information
Showing
4 changed files
with
32 additions
and
8 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
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Add Tags to Release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: get the release version | ||
id: get_version | ||
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} | ||
- name: tag with release version | ||
uses: tinact/[email protected] | ||
with: | ||
image_name: rht-labs/omp-backend | ||
image_old_tag: ${{ github.sha }} | ||
image_new_tag: ${{ steps.get_version.outputs.VERSION }} | ||
registry: quay.io | ||
registry_username: ${{ secrets.QUAY_USERNAME }} | ||
registry_password: ${{ secrets.QUAY_PASSWORD }} | ||
- name: tag with latest | ||
uses: tinact/[email protected] | ||
with: | ||
image_name: rht-labs/omp-backend | ||
image_old_tag: ${{ github.sha }} | ||
registry: quay.io | ||
registry_username: ${{ secrets.QUAY_USERNAME }} | ||
registry_password: ${{ secrets.QUAY_PASSWORD }} |
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
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