Skip to content

feat: fix build

feat: fix build #17

name: Release management
on:
push:
branches:
- main
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: ruby
package-name: ipa-toolkit-backend
version-file: "version.rb"
- name: Check out the repo
uses: actions/checkout@v3
with:
fetch-depth: 0
if: ${{ steps.release.outputs.release_created }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
if: ${{ steps.release.outputs.release_created }}
- name: Push to GitHub Container Registry
uses: docker/build-push-action@v3
with:
push: true
tags: ghcr.io/swissictedu/ipa-toolkit-backend:latest
cache-from: type=registry,ref=ghcr.io/ictorg/ipa-toolkit-backend:latest
cache-to: type=inline
if: ${{ steps.release.outputs.release_created }}