diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 991e372..7409fab 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -16,7 +16,7 @@ jobs: - name: Checkout repo uses: actions/checkout@v4 - - name: Login to registry + - name: Login to Docker Hub uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_USER }} @@ -31,7 +31,6 @@ jobs: tags: ${{ secrets.DOCKER_USER }}/cd-test:latest - name: Get image digest - # docker/build-push-action outputs `digest` automatically run: echo "IMAGE_DIGEST=${{ steps.build.outputs.digest }}" >> $GITHUB_ENV - name: Update manifest with new image digest @@ -39,9 +38,8 @@ jobs: with: valueFile: 'cd-test/guestbook-ui-deployment.yaml' propertyPath: 'spec.template.spec.containers[0].image' - # zapíšeme image s digestem value: ${{ secrets.DOCKER_USER }}/cd-test@${{ env.IMAGE_DIGEST }} commitChange: true message: "Update image to digest ${{ env.IMAGE_DIGEST }}" createPR: 'false' - + token: ${{ secrets.GITHUB_TOKEN }}