Skip to content

fix: update mysql scheme #16

fix: update mysql scheme

fix: update mysql scheme #16

Workflow file for this run

name: Docker Deploy
on:
push:
tags: [ 'v*.*.*' ]
jobs:
set-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
git_tag: ${{ steps.git_info.outputs.tag }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- id: set-matrix
run: |
JSON=$(cat .github/workflows/registry.json | tr '\n' ' ' | sed 's/ //g')
echo "::set-output name=matrix::$JSON"
- id: git_info
run: |
tag=$(echo ${{ github.ref }} | rev | cut -d/ -f1 | rev)
echo "::set-output name=tag::$tag"
docker:
runs-on: ubuntu-latest
needs: [ set-matrix ]
strategy:
matrix:
registry: ${{fromJSON(needs.set-matrix.outputs.matrix)}}
env:
id: ${{ secrets[matrix.registry.id] }}
token: ${{ secrets[matrix.registry.token] }}
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log into Registry ${{ matrix.registry.name }}
uses: docker/login-action@v3
with:
registry: ${{ matrix.registry.registry }}
username: ${{ env.id }}
password: ${{ env.token }}
- name: Set Up QEMU
id: qemu
uses: docker/setup-qemu-action@v3
- name: Set Up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
with:
install: true
- name: Build and Push ${{ matrix.registry.name }}
run: >
REPO=${{ matrix.registry.push_link }}
VERSION=${{ needs.set-matrix.outputs.git_tag }}
NEXT_PUBLIC_REDIRECT_URL=${{ secrets.NEXT_PUBLIC_REDIRECT_URL }}
docker buildx bake --file deploy/docker-bake.hcl --push
release:
runs-on: ubuntu-latest
needs: [ docker ]
permissions:
contents: write
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
generate_release_notes: true