Skip to content

Commit

Permalink
bump github action versions as suggest
Browse files Browse the repository at this point in the history
  • Loading branch information
kmahyyg authored Jan 27, 2024
1 parent 7f163da commit 7749c81
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/docker4commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,32 +25,32 @@ jobs:
platform-tag: "x86_64"
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
- name: Prepare destination folder
run: mkdir -p /tmp/build/out
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
with:
platforms: ${{ env.platform-name }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Cache Docker layers
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to GHCR
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
platforms: ${{ env.platform-name }}
Expand All @@ -67,7 +67,7 @@ jobs:
ghcr.io/${{ env.IMAGE_NAME }}:sha256-${{ github.sha }}-${{ env.platform-tag }}
- name: Publish the Image
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
platforms: ${{ env.platform-name }}
Expand All @@ -81,7 +81,7 @@ jobs:
tags: |
ghcr.io/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-${{ env.platform-tag }}
- name: Archive generated artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
retention-days: 30
name: dir-ztncui-aio-${{ env.platform-tag }}
Expand All @@ -97,32 +97,32 @@ jobs:
platform-tag: "aarch64"
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
- name: Prepare destination folder
run: mkdir -p /tmp/build/out
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
with:
platforms: ${{ env.platform-name }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Cache Docker layers
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to GHCR
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
platforms: ${{ env.platform-name }}
Expand All @@ -139,7 +139,7 @@ jobs:
ghcr.io/${{ env.IMAGE_NAME }}:sha256-${{ github.sha }}-${{ env.platform-tag }}
- name: Publish the Image
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
platforms: ${{ env.platform-name }}
Expand All @@ -153,7 +153,7 @@ jobs:
tags: |
ghcr.io/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-${{ env.platform-tag }}
- name: Archive generated artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
retention-days: 30
name: dir-ztncui-aio-${{ env.platform-tag }}
Expand All @@ -174,7 +174,7 @@ jobs:
run: |
mkdir -p /tmp/relbuild/${{ github.repository_owner }}
- name: Login To GHCR
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
Expand All @@ -186,7 +186,7 @@ jobs:
docker manifest create ghcr.io/${{ env.IMAGE_NAME }}:latest --amend ghcr.io/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-aarch64 --amend ghcr.io/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-x86_64
docker manifest push ghcr.io/${{ env.IMAGE_NAME }}:latest
- name: Download artifacts previously
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: /tmp/relbuild/${{ github.repository_owner }}
- name: Compress all artifacts using ZSTD
Expand Down

0 comments on commit 7749c81

Please sign in to comment.