-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (31 loc) · 1.01 KB
/
release_dagger.yaml
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
name: Release using Dagger
on:
push:
branches:
- main
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Dagger CLI
run: |
curl -L https://dl.dagger.io/dagger/install.sh | BIN_DIR=$HOME/.local/bin sh
- name: Build and Publish
run: |
dagger call -m github.com/chainloop-dev/integration-demo/chainloop-demo/dagger build-and-publish \
--proj . \
--chainloop-token env:CHAINLOOP_TOKEN \
--chainloop-signing-key env:CHAINLOOP_SIGNING_KEY \
--chainloop-passphrase env:CHAINLOOP_SIGNING_PASSWORD
env:
CHAINLOOP_TOKEN: ${{ secrets.CHAINLOOP_ROBOT_ACCOUNT }}
DAGGER_CLOUD_TOKEN: ${{ secrets.DAGGER_CLOUD_TOKEN }}
CHAINLOOP_SIGNING_PASSWORD: ${{ secrets.COSIGN_PASSWORD }}
CHAINLOOP_SIGNING_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}