Skip to content

update

update #2

Workflow file for this run

name: Canary build
on:
push:
branches:
- "main"
paths:
- "**.go"
- "go.mod"
- "Dockerfile.canary"
- ".github/workflows/canary.yaml"
workflow_dispatch:
jobs:
build-binaries:
name: Build binaries
uses: ./.github/workflows/reusable-release.yaml
with:
goreleaser_config: goreleaser-canary.yml
goreleaser_options: "--snapshot --clean --timeout 60m" # will not release
secrets: inherit
upload-binaries:
name: Upload binaries
needs: build-binaries # run this job after 'build-binaries' job completes
runs-on: ubuntu-latest
steps:
- name: Restore Tunnel binaries from cache
uses: actions/cache@v4.0.2
with:
path: dist/
key: ${{ runner.os }}-bins-${{github.workflow}}-${{github.sha}}
# Upload artifacts
- name: Upload artifacts (tunnel_Linux-64bit)
uses: actions/upload-artifact@v4
with:
name: tunnel_Linux-64bit
path: dist/tunnel_*_Linux-64bit.tar.gz
if-no-files-found: error
- name: Upload artifacts (tunnel_Linux-ARM64)
uses: actions/upload-artifact@v4
with:
name: tunnel_Linux-ARM64
path: dist/tunnel_*_Linux-ARM64.tar.gz
if-no-files-found: error
- name: Upload artifacts (tunnel_macOS-64bit)
uses: actions/upload-artifact@v4
with:
name: tunnel_macOS-64bit
path: dist/tunnel_*_macOS-64bit.tar.gz
if-no-files-found: error
- name: Upload artifacts (tunnel_macOS-ARM64)
uses: actions/upload-artifact@v4
with:
name: tunnel_macOS-ARM64
path: dist/tunnel_*_macOS-ARM64.tar.gz
if-no-files-found: error