Skip to content

Commit

Permalink
Pin workflow actions version
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoli Nicolae <[email protected]>
  • Loading branch information
anatolinicolae committed Feb 12, 2024
1 parent 9a4b7e7 commit 7f0d21b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,35 +22,35 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/[email protected].0
uses: styfle/[email protected].1

- name: ⬇️ Checkout repo
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1

- name: 🥡 Set up QEMU
uses: docker/setup-qemu-action@v3
uses: docker/setup-qemu-action@v3.0.0

- name: ✖️ Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@v3.0.0

- name: ⚡️ Cache Docker layers
uses: actions/cache@v3
uses: actions/cache@v4.0.0
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: 👋 Log in to the Container registry
uses: docker/login-action@v3
uses: docker/login-action@v3.0.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: 🧪 Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
uses: docker/metadata-action@v5.5.1
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
Expand All @@ -59,7 +59,7 @@ jobs:
type=ref,event=tag
- name: 🛠 Build and push Docker image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v5.1.0
with:
context: .
platforms: linux/amd64,linux/arm64
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ghcr_cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

steps:
- name: 🗑 Delete untagged images
uses: actions/github-script@v7
uses: actions/github-script@v7.0.1
with:
script: |
const response = await github.request("GET /user/packages/container/${{ env.PACKAGE_NAME }}/versions",
Expand Down

0 comments on commit 7f0d21b

Please sign in to comment.