Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflow changes to allow building and pushing a specific tag. #727

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading