Remove event recorder (#530) #1121
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: Create and publish the Docker image | |
on: | |
push: | |
branches: | |
- "main" | |
tags: ["*"] | |
paths: | |
- ".github/workflows/release.yml" | |
- "container/**" | |
- "Dockerfile" | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: ${{ github.repository }} | |
jobs: | |
build-and-push-image: | |
runs-on: larger | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Log in to the Container registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Extract metadata (tags, labels) for Docker | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | |
- name: Set Up env (main) | |
if: github.ref_type == 'tag' | |
run: | | |
echo "NETWORK=main" >> $GITHUB_ENV | |
printf ${{ secrets.PRODUCTION_BASE64_JWT_PUBLIC_KEY }} | base64 --decode > ./container/nginx/jwt_pub.key | |
- name: Set Up env (test) | |
if: github.ref_type == 'branch' | |
run: | | |
echo "NETWORK=test" >> $GITHUB_ENV | |
printf ${{ secrets.STAGING_BASE64_JWT_PUBLIC_KEY }} | base64 --decode > ./container/nginx/jwt_pub.key | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
with: | |
platforms: "arm64" | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Set the git short sha | |
id: git | |
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | |
- name: Compute version hash | |
id: secret | |
run: | | |
digest=$(echo -n "${{ github.run_number }}_${{ steps.git.outputs.sha_short }}${{ secrets.RELEASE_KEY }}" | sha256sum | head -c 64) | |
echo "::add-mask::${digest}" | |
echo "VERSION_HASH=${digest}" >> $GITHUB_ENV | |
- name: Compute docker tags | |
id: tags | |
run: | | |
repo="$REGISTRY/${IMAGE_NAME,,}" | |
docker_tag="$NETWORK" | |
# ensure canaries gets docker tagged correctly | |
# and get moved forward whenever there's a main release | |
echo "mutable_docker_tags<<EOF" >> $GITHUB_OUTPUT | |
if [[ "$GITHUB_REF_TYPE" == "tag" ]] && [[ "$GITHUB_REF_NAME" == canary-* ]]; then | |
docker_tag="canary" | |
elif [[ "$GITHUB_REF_TYPE" == "tag" ]]; then | |
echo "${repo}:canary" >> $GITHUB_OUTPUT | |
fi | |
echo "${repo}:${docker_tag}" >> $GITHUB_OUTPUT | |
echo "EOF" >> $GITHUB_OUTPUT | |
echo "version_docker_tags=$repo:${{ github.run_number}}_${{ steps.git.outputs.sha_short }}" | |
- name: Build and push Docker image | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
push: true | |
tags: | | |
${{ steps.tags.outputs.version_docker_tags }} | |
${{ steps.tags.outputs.mutable_docker_tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
platforms: linux/amd64,linux/arm64 | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
build-args: | | |
NETWORK=${{ env.NETWORK }} | |
VERSION=${{ github.run_number }}_${{ steps.git.outputs.sha_short }} | |
VERSION_HASH=${{ env.VERSION_HASH }} | |
SENTRY_DSN=${{ secrets.SENTRY_DSN }} | |
LASSIE_EXCLUDE_PROVIDERS=bafzbeibhqavlasjc7dvbiopygwncnrtvjd2xmryk5laib7zyjor6kf3avm,12D3KooW9tKveruEsVduQotTn4y1JveEHG3oFtGLWfuQqVoG1LLT,12D3KooWT3dCAgHpMCSscSw4EKzNqcSjutEeB7TVqfedsK29CjfR,12D3KooWKBRcG1YF58DdbEkcmXi2gEPJL3hCD83Jz1VVYhB9Dajc,12D3KooWMui2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