Skip to content

Commit

Permalink
Workflow changes to allow building and pushing a specific tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-horton-ho-sas committed Mar 26, 2024
1 parent 372eb3a commit 2e58624
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ name: tag data
trigger:
event:
- tag
branch:
- main

clone:
disable: true
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/manual-build-push.yml
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

0 comments on commit 2e58624

Please sign in to comment.