-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workflow changes to allow building and pushing a specific tag. (#727)
- Loading branch information
1 parent
372eb3a
commit 933e557
Showing
2 changed files
with
31 additions
and
2 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 |
---|---|---|
|
@@ -5,8 +5,6 @@ name: tag data | |
trigger: | ||
event: | ||
- tag | ||
branch: | ||
- main | ||
|
||
clone: | ||
disable: true | ||
|
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: Manual build and push | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: Git Tag | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build_and_push: | ||
name: Build and push | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
ref: ${{ inputs.tag }} | ||
|
||
- name: Build project | ||
uses: UKHomeOffice/sas-github-workflows/.github/actions/gradle-build-project@v2 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Publish image to Quay.io | ||
uses: UKHomeOffice/sas-github-workflows/.github/actions/docker-publish@v2 | ||
with: | ||
username: ${{ secrets.DOCKER_USER_NAME || secrets.QUAY_ROBOT_USER_NAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD || secrets.QUAY_ROBOT_TOKEN }} | ||
tag: ${{ inputs.tag }} | ||
tag_latest: false | ||
image: quay.io/ukhomeofficedigital/hocs-info-service |