Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Merge pull request #739 from serlo/sb16O-kulla-2024-04-14-08-51 #495

Merge pull request #739 from serlo/sb16O-kulla-2024-04-14-08-51

Merge pull request #739 from serlo/sb16O-kulla-2024-04-14-08-51 #495

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
jobs:
update-version:
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.version.outputs.tag }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- id: version
uses: salsify/action-detect-and-tag-new-version@v2
with:
version-command: |
awk -F ' = ' '$1 ~ /version/ { gsub(/[\\"]/, "", $2); printf("%s",$2) }' server/Cargo.toml
docker-image:
runs-on: ubuntu-latest
needs: update-version
if: ${{ needs.update-version.outputs.tag }}
steps:
- uses: actions/checkout@v4
- uses: serlo/configure-repositories/actions/setup-node@main
- uses: google-github-actions/auth@v2
with:
credentials_json: '${{ secrets.GCP_KEY_CONTAINER_REGISTRY }}'
- uses: google-github-actions/setup-gcloud@v2
- run: gcloud auth configure-docker
- run: yarn deploy