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

chore: database task image #53

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: 'Tag managed image'
name: 'Tag build-deploy managed image'

on:
push:
branches:
- main
paths:
- '.github/workflows/managed_retagger.yaml'
- '.github/workflows/bdt_managed_retagger.yaml'

env:
image: docker.io/uselagoon/build-deploy-image
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: 'Tag production image'
name: 'Tag build-deploy production image'

on:
push:
branches:
- main
paths:
- '.github/workflows/production_retagger.yaml'
- '.github/workflows/bdt_production_retagger.yaml'

env:
image: docker.io/uselagoon/build-deploy-image
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/dbtask_production_retagger.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: 'Tag database task production image'

on:
push:
branches:
- main
paths:
- '.github/workflows/dbtask_production_retagger.yaml'

env:
image: docker.io/uselagoon/database-image-task
tag: v0.0.3

jobs:
pull-tag-push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: "0"
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
docker.io/${{ github.repository_owner }}/database-image-task
ghcr.io/${{ github.repository_owner }}/database-image-task
tags: |
type=raw,value=production
type=raw,value=${{ env.tag }}
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push Image to multiple registries
uses: akhilerm/[email protected]
with:
src: ${{ env.image }}:${{ env.tag }}
dst: |
${{ steps.meta.outputs.tags }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Lagoon build-deploy-image retagger
# Lagoon image retagger

With the rapid pace of development in Lagoon, we have observed that the tagged release of Lagoon will cause
an updated `uselagoon/kubectl-build-deploy:latest` to be published. As this image is referenced in all of our remote-controllers, we want to avoid any inadvertent releases of functionality that may not be available on the production amazee.io clusters.
Expand Down