From e9fac8dda7232eae925ab0fb04a08045e7659897 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Fri, 13 Jan 2023 18:11:00 +0100 Subject: [PATCH] ci: Update docker actions Silences lots of deprecation warnings. Signed-off-by: Jan Kiszka --- .github/workflows/master.yml | 10 +++++----- .github/workflows/next.yml | 14 +++++++------- .github/workflows/release.yml | 10 +++++----- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 8026417..69de1c5 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -23,23 +23,23 @@ jobs: echo "PUSH_MASTER=true" >> $GITHUB_ENV fi - name: Set up QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: Login to ghcr.io - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: registry: ghcr.io username: ${{ secrets.PACKAGE_DEPLOY_USER }} password: ${{ secrets.PACKAGE_DEPLOY_TOKEN }} - name: Build kas image - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: platforms: linux/amd64,linux/arm64 push: ${{ env.PUSH_MASTER }} tags: ghcr.io/siemens/kas/kas - name: Build kas-isar image - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: target: kas-isar platforms: linux/amd64,linux/arm64 diff --git a/.github/workflows/next.yml b/.github/workflows/next.yml index 1dd5971..57a52d3 100644 --- a/.github/workflows/next.yml +++ b/.github/workflows/next.yml @@ -69,17 +69,17 @@ jobs: - name: Check out repo uses: actions/checkout@v3 - name: Set up QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: Login to ghcr.io - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: registry: ghcr.io username: ${{ secrets.PACKAGE_DEPLOY_USER }} password: ${{ secrets.PACKAGE_DEPLOY_TOKEN }} - name: Build kas image - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: load: true tags: ghcr.io/siemens/kas/kas:next @@ -88,13 +88,13 @@ jobs: cd image-tests/poky KAS_IMAGE_VERSION=next ../../kas-container build kas.yml - name: Complete build and deploy kas image - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: platforms: linux/amd64,linux/arm64 tags: ghcr.io/siemens/kas/kas:next push: true - name: Build kas-isar image - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: target: kas-isar load: true @@ -104,7 +104,7 @@ jobs: cd image-tests/isar KAS_IMAGE_VERSION=next ../../kas-container build kas.yml - name: Complete build and deploy kas-isar image - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: target: kas-isar platforms: linux/amd64,linux/arm64 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 439f56e..1949e8c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,17 +15,17 @@ jobs: - name: Get release run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV - name: Set up QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: Login to ghcr.io - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: registry: ghcr.io username: ${{ secrets.PACKAGE_DEPLOY_USER }} password: ${{ secrets.PACKAGE_DEPLOY_TOKEN }} - name: Build kas image - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: platforms: linux/amd64,linux/arm64 push: true @@ -34,7 +34,7 @@ jobs: ghcr.io/siemens/kas/kas:${{ env.RELEASE_VERSION }} ghcr.io/siemens/kas/kas:latest-release - name: Build kas-isar image - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: target: kas-isar platforms: linux/amd64,linux/arm64