Skip to content

Merge branch 'feat/size_check_kuma_push' #128

Merge branch 'feat/size_check_kuma_push'

Merge branch 'feat/size_check_kuma_push' #128

name: Create Release Image
on:
release:
types: [ published,edited,created ]
push:
tags:
- '*'
jobs:
build_release:
runs-on: ubuntu-latest
steps:
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- uses: actions/checkout@master
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Quay.io
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_TOKEN }}
- name: Build and publish image to Quay
uses: docker/build-push-action@v6
with:
file: Dockerfile
push: true
tags: quay.io/denbicloud/cron-backup:${{ steps.get_version.outputs.VERSION }}, quay.io/denbicloud/cron-backup:latest
special_builds:
runs-on: ubuntu-latest
needs: build_release
strategy:
fail-fast: false
matrix:
type: [ postgresql, mysql, mongodb ]
steps:
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- uses: actions/checkout@master
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Quay.io
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_TOKEN }}
- name: Build and publish image to Quay
uses: docker/build-push-action@v6
env:
BASE_TAG: ${{ steps.get_version.outputs.VERSION }}
with:
file: ${{matrix.type}}/Dockerfile
context: ${{matrix.type}}
push: true
build-args: BASE_TAG
tags: quay.io/denbicloud/cron-backup:${{matrix.type}}-${{ steps.get_version.outputs.VERSION }}