Skip to content

Commit

Permalink
run only publish image
Browse files Browse the repository at this point in the history
Signed-off-by: David Wertenteil <dwertent@armosec.io>
  • Loading branch information
David Wertenteil committed Feb 7, 2023
1 parent 45b02cb commit 0994e89
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions .github/workflows/02-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,48 +18,48 @@ jobs:
with:
SUB_STRING: "-rc"

binary-build:
needs: [retag]
uses: ./.github/workflows/b-binary-build-and-e2e-tests.yaml
with:
COMPONENT_NAME: kubescape
CGO_ENABLED: 1
GO111MODULE: ""
GO_VERSION: "1.19"
RELEASE: ${{ github.ref_name}}
CLIENT: release
secrets: inherit
# binary-build:
# needs: [retag]
# uses: ./.github/workflows/b-binary-build-and-e2e-tests.yaml
# with:
# COMPONENT_NAME: kubescape
# CGO_ENABLED: 1
# GO111MODULE: ""
# GO_VERSION: "1.19"
# RELEASE: ${{ github.ref_name}}
# CLIENT: release
# secrets: inherit

create-release:
permissions:
contents: write
needs: [retag, binary-build]
uses: ./.github/workflows/c-create-release.yaml
with:
RELEASE_NAME: "Release ${{ needs.retag.outputs.NEW_TAG }}"
TAG: ${{ needs.retag.outputs.NEW_TAG }}
DRAFT: false
secrets: inherit
# create-release:
# permissions:
# contents: write
# needs: [retag, binary-build]
# uses: ./.github/workflows/c-create-release.yaml
# with:
# RELEASE_NAME: "Release ${{ needs.retag.outputs.NEW_TAG }}"
# TAG: ${{ needs.retag.outputs.NEW_TAG }}
# DRAFT: false
# secrets: inherit

publish-krew-plugin:
name: Publish Krew plugin
runs-on: ubuntu-latest
if: "${{ github.repository_owner }} == kubescape"
needs: create-release
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Update new version in krew-index
uses: rajatjindal/krew-release-bot@v0.0.43
# publish-krew-plugin:
# name: Publish Krew plugin
# runs-on: ubuntu-latest
# if: "${{ github.repository_owner }} == kubescape"
# needs: create-release
# steps:
# - uses: actions/checkout@v3
# with:
# submodules: recursive
# - name: Update new version in krew-index
# uses: rajatjindal/krew-release-bot@v0.0.43

publish-image:
permissions:
id-token: write
packages: write
contents: read
uses: ./.github/workflows/d-publish-image.yaml
needs: [ create-release, retag ]
needs: [ retag ]
with:
client: "image-release"
image_name: "quay.io/${{ github.repository_owner }}/kubescape"
Expand Down

0 comments on commit 0994e89

Please sign in to comment.