chore(deps): bump theguild components #18
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
name: Release | |
on: | |
push: | |
branches: | |
- main | |
# TODO: make sure database sql is valid before releasing | |
jobs: | |
release: | |
strategy: | |
fail-fast: false | |
matrix: | |
target: | |
- database | |
- graphql | |
- server | |
name: Release ${{ matrix.target }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Get short commit SHA | |
id: shortsha | |
run: echo "shortsha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and Push | |
uses: docker/bake-action@v4 | |
with: | |
set: | | |
*.cache-from=type=gha | |
*.cache-to=type=gha,mode=max | |
server.args.VITE_APP_VER=${{ steps.shortsha.outputs.shortsha }} | |
targets: ${{ matrix.target }} | |
push: true |