-
Notifications
You must be signed in to change notification settings - Fork 6
50 lines (42 loc) · 1.41 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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"