From 36e4e6630a76e9661529a45816b54e249682d226 Mon Sep 17 00:00:00 2001 From: Nordine Bittich Date: Wed, 31 Jan 2024 22:55:52 +0100 Subject: [PATCH] update actions --- .github/workflows/latest.yml | 8 ++++---- .github/workflows/publish_docker.yml | 10 +++++----- .github/workflows/pull_request.yml | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/latest.yml b/.github/workflows/latest.yml index bf278d8..2ad33b3 100644 --- a/.github/workflows/latest.yml +++ b/.github/workflows/latest.yml @@ -22,16 +22,16 @@ jobs: runs-on: ubuntu-latest steps: - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Login to DockerHub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Build and push - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: push: true tags: nbittich/adana:latest diff --git a/.github/workflows/publish_docker.yml b/.github/workflows/publish_docker.yml index 081328b..6f14bed 100644 --- a/.github/workflows/publish_docker.yml +++ b/.github/workflows/publish_docker.yml @@ -2,7 +2,7 @@ name: Publish Docker image on: release: - types: [ published ] + types: [published] jobs: push_to_registry: @@ -10,20 +10,20 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out the repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Log in to Docker Hub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: nbittich/adana - name: Build and push Docker image - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: context: . push: true diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 7cbab78..e7867e8 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -11,7 +11,7 @@ jobs: env: CARGO_REGISTRY_TOKEN: ${{secrets.CARGO_REGISTRY_TOKEN}} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable with: toolchain: stable