-
Notifications
You must be signed in to change notification settings - Fork 12
37 lines (32 loc) · 1.08 KB
/
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
name: Publish
on:
push:
tags:
- "v*.*.*"
permissions:
# Grant the ability to checkout the repository
contents: write
# Grant the ability to push packages
packages: write
jobs:
publish-docker-images:
name: Push Docker images
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Publish Docker images
run: make publish-containers
- name: Publish component Helm package
run: |
set -e;
DRACON_VERSION_SEMVER=$(sed 's/v//' <<< ${{ github.ref_name }});
make cmd/draconctl/bin; \
bin/cmd/draconctl components package --version ${{ github.ref_name }} --chart-version ${DRACON_VERSION_SEMVER} --name dracon-oss-components ./components; \
helm push dracon-oss-components-${DRACON_VERSION_SEMVER}.tgz oci://ghcr.io/ocurity/dracon/charts