[pre-commit.ci] pre-commit autoupdate #83
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-container | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '22 5 22 * *' | |
push: | |
# Publish `master` as Docker `latest` image. | |
branches: | |
- master | |
# Publish `v1.2.3` tags as releases. | |
tags: | |
- v* | |
jobs: | |
push: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4 | |
- name: Login to Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ github.token }} | |
- id: string | |
uses: ASzc/change-string-case-action@v6 | |
with: | |
string: XCSoar | |
- name: build and push | |
uses: docker/build-push-action@v6 | |
with: | |
push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} | |
context: ./ | |
file: ./container/worker/Dockerfile | |
tags: ghcr.io/${{ steps.string.outputs.lowercase }}/mapgen-worker:latest | |
secrets: | | |
GIT_AUTH_TOKEN=${{ github.token }} | |
- name: build and push | |
uses: docker/build-push-action@v6 | |
with: | |
push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} | |
context: ./ | |
file: ./container/frontend/Dockerfile | |
tags: ghcr.io/${{ steps.string.outputs.lowercase }}/mapgen-frontend:latest | |
secrets: | | |
GIT_AUTH_TOKEN=${{ github.token }} |