-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (36 loc) · 976 Bytes
/
publish.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
name: publish
on:
push:
branches:
- 'main'
jobs:
unit:
name: Publish
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
strategy:
matrix:
include:
- image: cup/cupd:latest
command: publish
- image: cup/flipt:latest
command: hack fliptcup publish
steps:
- uses: actions/setup-go@v3
with:
go-version: '1.21'
- uses: actions/checkout@v3
- name: Install Dagger CLI
env:
DAGGER_VERSION: 0.6.2
working-directory: /usr/local
run: curl -L https://dl.dagger.io/dagger/install.sh | sh
- name: Run Dagger pipeline
env:
CUP_BUILD_REGISTRY: ghcr.io
CUP_BUILD_USERNAME: "${{ github.repository_owner }}"
CUP_BUILD_PASSWORD: "${{ secrets.GITHUB_TOKEN }}"
CUP_BUILD_IMAGE_NAME: ${{ matrix.image }}
run: ./build.sh ${{ matrix.command }}