chore: Add support for flag icons in Flag component #5
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 and publish container images | |
# TODO: we should investigate if we can DRY this up | |
on: | |
release: | |
types: [created] | |
push: | |
branches: | |
- main | |
jobs: | |
frontend: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
# - name: Unlock secrets | |
# uses: sliteteam/[email protected] | |
# env: | |
# GIT_CRYPT_KEY: ${{ secrets.GIT_CRYPT_KEY }} | |
- name: Extract metadata (tags, labels) for Docker | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: deutschemodelunitednations/delegator-frontend | |
flavor: | | |
latest=false | |
tags: | | |
type=semver,pattern={{version}},value=${{ github.event.release.tag_name }},enable=${{ github.event_name == 'release' }} | |
type=raw,value=prerelease,enable=${{ github.event_name == 'release' && github.event.release.prerelease }} | |
type=raw,value=latest,enable=${{ github.event_name == 'release' && !github.event.release.prerelease }} | |
type=raw,value=nightly,enable=${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push Docker image | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: ./Dockerfile.frontend | |
build-args: | | |
VITE_FRONTEND_URL=${{ secrets.VITE_FRONTEND_URL }} | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} |