diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e829a261..fe9197ad 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -306,7 +306,7 @@ jobs: shell: bash run: npx semantic-release env: - BUILD_DOCKER_REGISTRY: ${{ secrets.VBR_BUILD_DOCKER_REGISTRY_TST }} + BUILD_DOCKER_REGISTRY: ${{ secrets.VBR_DEVOPS_DOCKER_REGISTRY }} GITHUB_TOKEN: ${{ secrets.VBR_GIT_RELEASE_TOKEN }} GIT_COMMIT: ${{ github.sha }} GIT_USERNAME: ${{ secrets.VBR_GIT_USER }} @@ -444,13 +444,13 @@ jobs: push_images: if: needs.release.outputs.version != 'none' needs: [ release ] - name: Push images to Test + name: Push images runs-on: ubuntu-latest strategy: matrix: image: ['api-legacy', 'api-oslo', 'api-crab-import', 'api-extract', 'projector', 'producer', 'producer-snapshot-oslo'] steps: - - name: Configure AWS credentials (Test) + - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v1-node16 with: aws-access-key-id: ${{ secrets.VBR_AWS_ACCESS_KEY_ID_DEVOPS }} @@ -477,7 +477,7 @@ jobs: env: IMAGE: ${{ matrix.image }} - - name: Push artifacts to ECR Test + - name: Push artifacts to ECR shell: bash run: | echo $IMAGE:$SEMVER @@ -528,8 +528,10 @@ jobs: shell: bash run: | echo $IMAGE:$SEMVER + docker tag $BUILD_DOCKER_REGISTRY_TST/municipality-registry/$IMAGE:$SEMVER $BUILD_DOCKER_REGISTRY/municipality-registry/$IMAGE:$SEMVER docker push $BUILD_DOCKER_REGISTRY/municipality-registry/$IMAGE:$SEMVER env: + BUILD_DOCKER_REGISTRY_TST: ${{ secrets.VBR_DEVOPS_DOCKER_REGISTRY }} BUILD_DOCKER_REGISTRY: ${{ secrets.VBR_BUILD_DOCKER_REGISTRY_TST }} IMAGE: ${{ matrix.image }} SEMVER: ${{ needs.release.outputs.version }} @@ -578,7 +580,7 @@ jobs: docker tag $BUILD_DOCKER_REGISTRY_TST/municipality-registry/$IMAGE:$SEMVER $BUILD_DOCKER_REGISTRY/municipality-registry/$IMAGE:$SEMVER docker push $BUILD_DOCKER_REGISTRY/municipality-registry/$IMAGE:$SEMVER env: - BUILD_DOCKER_REGISTRY_TST: ${{ secrets.VBR_BUILD_DOCKER_REGISTRY_TST }} + BUILD_DOCKER_REGISTRY_TST: ${{ secrets.VBR_DEVOPS_DOCKER_REGISTRY }} BUILD_DOCKER_REGISTRY: ${{ secrets.VBR_BUILD_DOCKER_REGISTRY }} IMAGE: ${{ matrix.image }} SEMVER: ${{ needs.release.outputs.version }} @@ -627,7 +629,7 @@ jobs: docker tag $BUILD_DOCKER_REGISTRY_TST/municipality-registry/$IMAGE:$SEMVER $BUILD_DOCKER_REGISTRY_NEWPRD/municipality-registry/$IMAGE:$SEMVER docker push $BUILD_DOCKER_REGISTRY_NEWPRD/municipality-registry/$IMAGE:$SEMVER env: - BUILD_DOCKER_REGISTRY_TST: ${{ secrets.VBR_BUILD_DOCKER_REGISTRY_TST }} + BUILD_DOCKER_REGISTRY_TST: ${{ secrets.VBR_DEVOPS_DOCKER_REGISTRY }} BUILD_DOCKER_REGISTRY_NEWPRD: ${{ secrets.VBR_BUILD_DOCKER_REGISTRY_NEWPRD }} IMAGE: ${{ matrix.image }} SEMVER: ${{ needs.release.outputs.version }}