From 0caec660e72d67df518cb65f1a08b682481db4a2 Mon Sep 17 00:00:00 2001 From: Oliver Lehmann-Korn Date: Fri, 3 May 2024 13:17:40 +0200 Subject: [PATCH] Update GitHub Actions checkout, setup-buildx-action, dotenv-action (Node 20), metadata-action, login-action and build-push-action --- .github/workflows/workflow-docker-build.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/workflow-docker-build.yml b/.github/workflows/workflow-docker-build.yml index 887579a..80b429b 100644 --- a/.github/workflows/workflow-docker-build.yml +++ b/.github/workflows/workflow-docker-build.yml @@ -25,7 +25,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 + uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 - name: Copy sample app to Docker context dir run: cp app/target/app.jar ${{ inputs.docker-context }} @@ -36,17 +36,17 @@ jobs: platforms: arm64 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0 + uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0 - name: Read .env id: dotenv - uses: falti/dotenv-action@1fd84c8ebe23bc2523c13de6cd1ab8a26e6571e5 # v1.0.4 + uses: falti/dotenv-action@d1cd55661714e830a6e26f608f81d36e23424fed # v1.1.2 with: path: ${{ inputs.docker-context }}/.env - name: Docker meta id: meta - uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0 + uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | @@ -58,14 +58,14 @@ jobs: - name: Login to DockerHub if: github.event_name != 'pull_request' - uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0 + uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push - uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0 + uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0 with: platforms: amd64,arm64 context: ${{ inputs.docker-context }}