From 67988ab3f7d515fe09ec196e8ad386388d62f2d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Nussbaumer?= Date: Tue, 28 Mar 2023 14:17:56 +0200 Subject: [PATCH] build: also push containers to ghcr.io MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit related to #133 Signed-off-by: Clément Nussbaumer --- .github/workflows/publish.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index e8cdb2f..dae132d 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -220,6 +220,17 @@ jobs: name: Setup ko env: KO_DOCKER_REPO: docker.io/postfinance + - name: Run ko publish + run: | + export REF=${{ github.ref}} + export COMMIT=${{ github.sha}} + export FEAT=$(echo $REF | awk -F 'feat/' '{print $2}') + ko publish ./cmd/kubelet-csr-approver/ --base-import-paths --platform=linux/amd64,linux/arm64,linux/arm -t $FEAT + + - uses: ko-build/setup-ko@v0.6 + name: Setup ko + env: + KO_DOCKER_REPO: ghcr.io/postfinance - name: Run ko publish run: | export REF=${{ github.ref}}