22.10.2024 v2 #50
Workflow file for this run
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: Build v2-prod from release | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
v2-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set time zone to Europe/Helsinki | |
uses: zcong1993/setup-timezone@master | |
with: | |
timezone: "Europe/Helsinki" | |
- name: Check Tag | |
id: check-tag | |
run: | | |
if [[ ${GITHUB_REF##*/} =~ ^202[0-9][0-1][0-9][0-3][0-9] ]]; then | |
echo "match=true" >> $GITHUB_OUTPUT | |
else | |
echo invalid release tag | |
exit 1 | |
fi | |
- name: Push latest image as v2-prod | |
if: steps.check-tag.outputs.match == 'true' | |
run: ./.github/workflows/scripts/push_prod.sh | |
env: | |
DOCKER_USER: ${{ secrets.DOCKER_USER }} | |
DOCKER_AUTH: ${{ secrets.DOCKER_AUTH }} | |
DOCKER_BASE_TAG: v2-prod | |
DOCKER_DEV_TAG: v2 |