cmd/breakpoint: Use user preferred shell if set. #33
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 | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
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.sha }} | |
jobs: | |
docker-build: | |
name: Build with Docker | |
runs-on: nscloud | |
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: docker/setup-buildx-action@v2 | |
- 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 }} | |
- 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" |