Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change: use vars.greenbone_registry not secrets.greenbone_registry #124

Merged
merged 1 commit into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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