From 9622377f55e653ea3ad1e0d6b90b00f9b03f908a Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Wed, 23 Nov 2022 04:00:32 +0900 Subject: [PATCH] ci: Update actions This commit updates the actions used by the CI workflow to the latest version. Signed-off-by: Stephanos Ioannidis --- .github/workflows/ci.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 343635b..139462f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,18 +43,18 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Generate local metadata for CI image id: meta_ci - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v4 with: images: | localhost:5000/zephyrproject-rtos/ci - name: Generate local metadata for Developer image id: meta_developer - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v4 with: images: | localhost:5000/zephyrproject-rtos/zephyr-build @@ -62,7 +62,7 @@ jobs: - name: Generate push metadata for CI image if: ${{ github.event_name != 'pull_request' }} id: meta_ci_push - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v4 with: images: | docker.io/zephyrprojectrtos/ci @@ -77,7 +77,7 @@ jobs: - name: Generate push metadata for Developer image if: ${{ github.event_name != 'pull_request' }} id: meta_developer_push - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v4 with: images: | docker.io/zephyrprojectrtos/zephyr-build @@ -90,12 +90,12 @@ jobs: type=ref,event=tag - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 with: driver-opts: network=host - name: Build CI docker image - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: context: . file: Dockerfile @@ -105,7 +105,7 @@ jobs: labels: ${{ steps.meta_ci.outputs.labels }} - name: Build Developer docker image - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: context: . file: Dockerfile.user @@ -118,7 +118,7 @@ jobs: - name: Login to DockerHub if: ${{ github.event_name != 'pull_request' }} - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: registry: docker.io username: ${{ secrets.DOCKERHUB_USERNAME }} @@ -126,7 +126,7 @@ jobs: - name: Login to GitHub Container Registry if: ${{ github.event_name != 'pull_request' }} - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: registry: ghcr.io username: ${{ github.repository_owner }} @@ -154,14 +154,14 @@ jobs: steps: - name: Login to DockerHub - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: registry: docker.io username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Login to GitHub Container Registry - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: registry: ghcr.io username: ${{ github.repository_owner }} @@ -169,7 +169,7 @@ jobs: - name: Generate push metadata for CI image id: meta_ci_push - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v4 with: images: | docker.io/zephyrprojectrtos/ci @@ -183,7 +183,7 @@ jobs: - name: Generate push metadata for Developer image id: meta_developer_push - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v4 with: images: | docker.io/zephyrprojectrtos/zephyr-build