Skip to content

fix #247, push the right package to oci registry for enrichmentdb mig… #363

fix #247, push the right package to oci registry for enrichmentdb mig…

fix #247, push the right package to oci registry for enrichmentdb mig… #363

Workflow file for this run

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
make draconctl-image-publish DRACON_VERSION=latest
- name: Publish component Helm package
run: |
set -e
DRACON_VERSION_SEMVER=$(sed 's/v//' <<< ${{ github.ref_name }})
make cmd/draconctl/bin
# Package, Publish Components
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
# Package, Publish Migrations
helm package -u\
--app-version ${{ github.ref_name }}\
--version ${DRACON_VERSION_SEMVER}\
./deploy/enrichment-db-migrations/chart
helm push enrichment-db-migrations-${DRACON_VERSION_SEMVER}.tgz oci://ghcr.io/ocurity/dracon/charts