Skip to content

Commit

Permalink
Change: use vars.greenbone_registry not secrets.greenbone_registry (#124
Browse files Browse the repository at this point in the history
)
  • Loading branch information
pascalholthaus authored Oct 25, 2024
1 parent ffe5bf9 commit 0787c2c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/container-build-push-2nd-gen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
image-tags: raw,value=${{ inputs.ref-name || github.ref_name }}-amd64 # temporary tag that will be overwritten with the manifest upload
image-platforms: linux/amd64
image-flavor: latest=false
registry: ${{ secrets.GREENBONE_REGISTRY }}
registry: ${{ vars.GREENBONE_REGISTRY }}
registry-username: ${{ secrets.GREENBONE_REGISTRY_USER }}
registry-password: ${{ secrets.GREENBONE_REGISTRY_TOKEN }}
scout-user: ${{ secrets.DOCKERHUB_USERNAME }}
Expand Down Expand Up @@ -177,7 +177,7 @@ jobs:
image-tags: raw,value=${{ inputs.ref-name || github.ref_name }}-arm64 # temporary tag that will be overwritten with the manifest upload
image-platforms: linux/arm64
image-flavor: latest=false
registry: ${{ secrets.GREENBONE_REGISTRY }}
registry: ${{ vars.GREENBONE_REGISTRY }}
registry-username: ${{ secrets.GREENBONE_REGISTRY_USER }}
registry-password: ${{ secrets.GREENBONE_REGISTRY_TOKEN }}
scout-user: ${{ secrets.DOCKERHUB_USERNAME }}
Expand Down Expand Up @@ -209,7 +209,7 @@ jobs:
id: meta
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
with:
images: ${{ secrets.GREENBONE_REGISTRY }}/${{ inputs.image-url }}
images: ${{ vars.GREENBONE_REGISTRY }}/${{ inputs.image-url }}
flavor: latest=false
tags: |
type=raw,value=latest,enable=${{ (needs.build-amd64.outputs.is-latest-tag == 'true') && (inputs.base-image-label == 'stable') }}
Expand Down Expand Up @@ -243,7 +243,7 @@ jobs:
${{ needs.build-amd64.outputs.digest }}
${{ needs.build-arm64.outputs.digest }}
url: ${{ inputs.image-url }}
registry: ${{ secrets.GREENBONE_REGISTRY }}
registry: ${{ vars.GREENBONE_REGISTRY }}
registry-username: ${{ secrets.GREENBONE_REGISTRY_USER }}
registry-password: ${{ secrets.GREENBONE_REGISTRY_TOKEN }}

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/container-build-push-feed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
image-tags: raw,value=${{ inputs.ref-name || github.ref_name }}-amd64 # temporary tag that will be overwritten with the manifest upload
image-platforms: linux/amd64
image-flavor: latest=false
registry: ${{ secrets.GREENBONE_REGISTRY }}
registry: ${{ vars.GREENBONE_REGISTRY }}
registry-username: ${{ secrets.GREENBONE_REGISTRY_USER }}
registry-password: ${{ secrets.GREENBONE_REGISTRY_TOKEN }}

Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:
image-tags: raw,value=${{ inputs.ref-name || github.ref_name }}-arm64 # temporary tag that will be overwritten with the manifest upload
image-platforms: linux/arm64
image-flavor: latest=false
registry: ${{ secrets.GREENBONE_REGISTRY }}
registry: ${{ vars.GREENBONE_REGISTRY }}
registry-username: ${{ secrets.GREENBONE_REGISTRY_USER }}
registry-password: ${{ secrets.GREENBONE_REGISTRY_TOKEN }}

Expand All @@ -163,7 +163,7 @@ jobs:
id: meta
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
with:
images: ${{ secrets.GREENBONE_REGISTRY }}/${{ inputs.image-url }}
images: ${{ vars.GREENBONE_REGISTRY }}/${{ inputs.image-url }}
tags: ${{ inputs.image-tags }}

- name: Create multi arch manifest
Expand All @@ -180,7 +180,7 @@ jobs:
${{ needs.build-amd64.outputs.digest }}
${{ needs.build-arm64.outputs.digest }}
url: ${{ inputs.image-url }}
registry: ${{ secrets.GREENBONE_REGISTRY }}
registry: ${{ vars.GREENBONE_REGISTRY }}
registry-username: ${{ secrets.GREENBONE_REGISTRY_USER }}
registry-password: ${{ secrets.GREENBONE_REGISTRY_TOKEN }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/helm-container-build-push-3rd-gen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ jobs:
type=ref,event=pr
# use unstable for main branch
type=raw,value=unstable,enable={{is_default_branch}}
registry: ${{ secrets.GREENBONE_REGISTRY }}
registry: ${{ vars.GREENBONE_REGISTRY }}
registry-username: ${{ secrets.GREENBONE_REGISTRY_USER }}
registry-password: ${{ secrets.GREENBONE_REGISTRY_TOKEN }}

Expand Down Expand Up @@ -252,7 +252,7 @@ jobs:
- building-service-chart
- building-product-chart
- building-product-compose
if: ${{ !cancelled() && startsWith(inputs.notify, 'true') }}
if: ${{ !cancelled() && startsWith(github.ref, 'refs/tags/v') && startsWith(inputs.notify, 'true') }}
uses: greenbone/workflows/.github/workflows/notify-mattermost-3rd-gen.yml@main
with:
status: ${{ contains(needs.*.result, 'failure') && 'failure' || 'success' }}
Expand Down

0 comments on commit 0787c2c

Please sign in to comment.