Release Rendezvous Docker image #4
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: Release Rendezvous Docker image | |
on: | |
release: | |
types: [released] | |
permissions: | |
contents: read # Checkout the code | |
packages: write # Push to GitHub registry | |
env: | |
IMAGE_NAME: rendezvous | |
IMAGE_REPO: ghcr.io/${{ github.repository_owner }} | |
VERSION: ${{ github.event.release.tag_name }} | |
jobs: | |
docker-release: | |
name: Release Docker image ${{ github.event.release.tag_name }} | |
runs-on: nscloud-ubuntu-22.04-amd64-2x8 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup Buildx for Docker build | |
uses: namespacelabs/nscloud-setup-buildx-action@v0 | |
- name: Docker build the Rendezvous server | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
push: true | |
tags: ${{ env.IMAGE_REPO }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }} | |
platforms: linux/amd64,linux/arm64 | |
- name: Breakpoint on failure | |
if: failure() | |
uses: namespacelabs/breakpoint-action@v0 | |
env: | |
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | |
with: | |
duration: 30m | |
authorized-users: edganiukov,hugosantos,n-g,htr,nichtverstehen,gmichelo | |
slack-announce-channel: "#ci" |