Skip to content

Commit

Permalink
CI: remove version from actions in GitHub Actions workflows (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom authored Feb 25, 2022
1 parent 4fefe42 commit 52f608f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,34 @@ 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 }}
restore-keys: |
${{ 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
Expand Down

0 comments on commit 52f608f

Please sign in to comment.