From a892ff837b7497161cc25aa7e4466b56b53f86df Mon Sep 17 00:00:00 2001 From: Mats Bergmann Date: Fri, 2 Jun 2023 14:59:21 +0200 Subject: [PATCH 1/2] feat: move registry-url to input registry-url is not secret. move to input secret registry-url is deprecated. use input registry-url instead --- .github/workflows/workflow.yaml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml index a0f22e2..4e86463 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/workflow.yaml @@ -21,6 +21,11 @@ on: type: boolean default: false description: Tag a successfully built image with the tag latest. + registry-url: + type: string + default: ${{ env.PLATTFORM_CONTAINER_REGISTRY }} + description: URL to the container registry. + required: false runs-on: type: string default: "['self-hosted']" @@ -46,9 +51,6 @@ on: default: MEDIUM,HIGH,CRITICAL description: Comma-separated list of severities to consider an error. secrets: - registry-url: - description: URL to the container registry. - required: true registry-username: description: Username for the container registry. required: true @@ -105,7 +107,7 @@ jobs: name: Docker login uses: docker/login-action@v2 with: - registry: ${{ secrets.registry-url }} + registry: ${{ env.registry-url }} username: ${{ secrets.registry-username }} password: ${{ secrets.registry-password }} - @@ -189,7 +191,7 @@ jobs: id: meta with: images: | - ${{ secrets.registry-url }}/${{ inputs.name }} + ${{ env.registry-url }}/${{ inputs.name }} tags: | type=ref,event=pr type=raw,value=${{ github.sha }} @@ -199,7 +201,7 @@ jobs: name: Docker login uses: docker/login-action@v2 with: - registry: ${{ secrets.registry-url }} + registry: ${{ env.registry-url }} username: ${{ secrets.registry-username }} password: ${{ secrets.registry-password }} - From 83c4268eeb092dccc4e850d99728d969d9aaf51a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mats=20B=C3=B8e=20Bergmann?= Date: Wed, 17 Jul 2024 09:05:28 +0200 Subject: [PATCH 2/2] ci: add config for policy-bot and bulldozer --- .bulldozer.yml | 5 +++++ .policy.yml | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 .bulldozer.yml create mode 100644 .policy.yml diff --git a/.bulldozer.yml b/.bulldozer.yml new file mode 100644 index 0000000..1e7b894 --- /dev/null +++ b/.bulldozer.yml @@ -0,0 +1,5 @@ +--- +remote: nrkno/nrk-bot-configs +path: plattform/utvikleropplevelse/bulldozer/bulldozer.yaml +ref: main + diff --git a/.policy.yml b/.policy.yml new file mode 100644 index 0000000..d030d63 --- /dev/null +++ b/.policy.yml @@ -0,0 +1,5 @@ +--- +remote: nrkno/nrk-bot-configs +path: plattform/utvikleropplevelse/policy-bot/policy-bot.yaml +ref: main +