From 52f608fb9c2d358227bf91db2c01e3f309a011c6 Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Fri, 25 Feb 2022 13:04:43 +0100 Subject: [PATCH] CI: remove version from actions in GitHub Actions workflows (#106) --- .github/workflows/docker.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index f9c1cc5..b6bb0c9 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -13,13 +13,13 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # 2.3.4 + uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@94ab11c41e45d028884a99163086648e898eed25 # 1.1.1 + uses: docker/setup-buildx-action@94ab11c41e45d028884a99163086648e898eed25 - name: Cache Docker layers - uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed # 2.1.3 + uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed with: path: /tmp/.buildx-cache key: ${{ runner.os }}-buildx-${{ github.sha }} @@ -27,20 +27,20 @@ jobs: ${{ runner.os }}-buildx- - name: Login to DockerHub - uses: docker/login-action@42d299face0c5c43a0487c477f595ac9cf22f1a7 # 1.8.0 + uses: docker/login-action@42d299face0c5c43a0487c477f595ac9cf22f1a7 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PASSWORD }} - name: Login to ECR - uses: docker/login-action@42d299face0c5c43a0487c477f595ac9cf22f1a7 # 1.8.0 + uses: docker/login-action@42d299face0c5c43a0487c477f595ac9cf22f1a7 with: registry: ${{ env.ECR_REGISTRY }} username: ${{ secrets.AWS_ECR_ACCESS_KEY_ID }} password: ${{ secrets.AWS_ECR_SECRET_ACCESS_KEY }} - name: Build and push Docker image - uses: docker/build-push-action@7f9d37fa544684fb73bfe4835ed7214c255ce02b # 2.2.2 + uses: docker/build-push-action@7f9d37fa544684fb73bfe4835ed7214c255ce02b with: context: . file: ./Dockerfile