-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (41 loc) · 1.27 KB
/
publish.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
36
37
38
39
40
41
42
43
name: release
on:
push:
branches:
- main
paths:
- "zarf.yaml"
- "zarf-config.yaml"
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write # needed for ghcr access
strategy:
matrix:
flavor:
- registry1
- gitea-registry1
steps:
- uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to registry1
uses: docker/login-action@v3
with:
registry: registry1.dso.mil
username: ${{ secrets.IRON_BANK_ROBOT_USERNAME }}
password: ${{ secrets.IRON_BANK_ROBOT_PASSWORD }}
- name: Install Zarf
uses: defenseunicorns/setup-zarf@main
with:
# renovate: datasource=docker depName=registry1.dso.mil/ironbank/opensource/defenseunicorns/zarf/zarf-agent
version: v0.43.0
download-init-package: false
- name: Build and Publish IB Package
run: zarf package create --confirm --output oci://ghcr.io/defenseunicorns/delivery-zarf-init --no-progress --flavor ${{ matrix.flavor }}