Skip to content

Commit ef9b06c

Browse files
chore: simplify the backup image creation action
1 parent b67095c commit ef9b06c

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

.github/workflows/publish-image-backup-storage-gold.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
11
# https://github.com/bcgov/helm-charts/tree/master/charts/backup-storage#build-the-container-image-using-github-actions
2-
name: Create and publish Backup Storage Docker image Gold
3-
4-
on:
5-
workflow_dispatch:
6-
inputs:
7-
replace_docker_image:
8-
description: 'Do we use a custom docker image?'
9-
type: boolean
10-
required: true
11-
default: 'false'
12-
tag_for_image:
13-
default: 'testing'
14-
required: true
2+
name: Create and publish a devevlopment Backup Storage Image
3+
4+
on: workflow_dispatch
155

166
env:
177
GITHUB_REGISTRY: ghcr.io
@@ -32,7 +22,6 @@ jobs:
3222
run: git clone https://github.com/BCDevOps/backup-container.git
3323

3424
- name: Replace the dockerfile
35-
if: ${{ github.event.inputs.replace_docker_image == 'true'}}
3625
run: cp ./docker/backup-container/* ./backup-container/docker
3726

3827
- name: Log in to the GitHub Container registry
@@ -47,5 +36,5 @@ jobs:
4736
with:
4837
context: backup-container/docker
4938
push: true
50-
tags: ${{ env.GITHUB_REGISTRY }}/${{ env.IMAGE_NAME }}:${{github.event.inputs.tag_for_image}}
39+
tags: ${{ env.GITHUB_REGISTRY }}/${{ env.IMAGE_NAME }}:development
5140
labels: sso-keycloak-backup

0 commit comments

Comments
 (0)