From a2e16f73a15ea3085e8c95a1291fb62be7303340 Mon Sep 17 00:00:00 2001 From: Edmond Chuc Date: Mon, 11 Mar 2024 17:37:08 +1000 Subject: [PATCH] Update gh action versions for on_release workflow --- .github/workflows/on_release.yaml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/on_release.yaml b/.github/workflows/on_release.yaml index d56325d8..19f6aeb8 100644 --- a/.github/workflows/on_release.yaml +++ b/.github/workflows/on_release.yaml @@ -14,10 +14,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: latest @@ -26,8 +26,9 @@ jobs: run: echo "VALUE=$(npx --yes semver ${{ github.event.release.tag_name }})" >> "$GITHUB_OUTPUT" - name: Set up Python - uses: actions/setup-python@v4 - + uses: actions/setup-python@v5 + with: + python-version: "3.11" - name: Install Poetry uses: snok/install-poetry@v1 @@ -36,7 +37,7 @@ jobs: - name: Docker metadata id: metadata - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: ${{ env.IMAGE_NAME }} tags: | @@ -45,20 +46,20 @@ jobs: type=semver,pattern={{major}} - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up and use Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: push: true build-args: PREZ_VERSION=${{ steps.version.outputs.VALUE }}