fix: Legacy bridge for page geokret_gallery.php
#235
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: docker-build | |
on: | |
schedule: | |
- cron: "0 10 * * *" | |
push: | |
branches-ignore: | |
- main | |
- master | |
- l10n_master | |
- l10n_new-theme | |
tags: | |
- "v2.*.*" | |
pull_request: | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Check for existing website-base image for current branch | |
if: "${{ !startsWith(github.ref, 'refs/tags/v') }}" | |
id: existing-image | |
run: | | |
if docker pull geokrety/website-base:${{ github.ref_name }}; then | |
echo "exists=true" >> $GITHUB_OUTPUT | |
else | |
echo "exists=false" >> $GITHUB_OUTPUT | |
fi | |
- name: Override base image tag from branch name | |
if: "${{ !startsWith(github.ref, 'refs/tags/v') && steps.existing-image.outputs.exists == 'true' }}" | |
run: | | |
sed -i "s/^ARG BASE_TAG=.*$/ARG BASE_TAG=${{ github.ref_name }}/" Dockerfile | |
- uses: geokrety/geokrety-gha-workflows/.github/actions/docker-build@main | |
with: | |
image_name: geokrety/website | |
dockerhub_username: ${{ vars.DOCKERHUB_USERNAME }} | |
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }} | |
update-version-set: | |
uses: geokrety/geokrety-gha-workflows/.github/workflows/version-set.yml@main | |
needs: docker | |
secrets: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
deploy: | |
uses: geokrety/geokrety-gha-workflows/.github/workflows/trigger-staging-deploy.yml@main | |
needs: docker | |
secrets: | |
DEPLOY_HEADER_NAME: ${{ secrets.DEPLOY_HEADER_NAME }} | |
DEPLOY_HEADER_VALUE: ${{ secrets.DEPLOY_HEADER_VALUE }} | |
DEPLOY_URL: ${{ secrets.DEPLOY_URL }} |