-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add build-image-on-tags GitHub action
Description: - Adds a GitHub Action to build the docker image but tagged - Use 'k' instead of 'v' to avoid clashing with the existing docker images as this isn't ready to release without testing yet
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Build and push images on tags | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'k[0-9]+.[0-9]+.[0-9]+' | ||
|
||
jobs: | ||
build_and_push: | ||
name: datagovuk-publish | ||
runs-on: ubuntu-latest | ||
permissions: | ||
packages: write | ||
steps: | ||
- name: Login to GHCR | ||
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # v2.1.0 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.gitRef }} | ||
- name: Build and push images | ||
env: | ||
APP: datagovuk_publish | ||
ARCH: amd64 | ||
GH_REF: ${{ github.ref_name }} | ||
run: ./docker/build-image.sh |
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