diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 62c3f863..3e45bcad 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -23,7 +23,7 @@ jobs: - '3.12' - '3.13' steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install uv uses: astral-sh/setup-uv@v6 with: @@ -35,12 +35,12 @@ jobs: run: uv run pre-commit run --all-files - name: Set up QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v3 with: platforms: linux/amd64,linux/arm64 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v3 - name: Test with pytest # Create the ssh key file once for all testing @@ -64,7 +64,7 @@ jobs: outputs: current-version: ${{ steps.version-number.outputs.CURRENT_VERSION }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: # Fetch all history instead of the latest commit fetch-depth: 0 @@ -84,7 +84,7 @@ jobs: runs-on: ubuntu-latest needs: [test, get-version] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: # Fetch all history instead of the latest commit fetch-depth: 0 @@ -95,7 +95,7 @@ jobs: runs-on: ubuntu-latest needs: test steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: # Fetch all history instead of the latest commit fetch-depth: 0 @@ -123,28 +123,28 @@ jobs: runs-on: ubuntu-latest needs: [test, get-version] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: # Fetch all history instead of the latest commit fetch-depth: 0 - name: Docker Tags id: docker_tags - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v5 with: images: ghcr.io/adobe/buildrunner tags: | latest ${{ needs.get-version.outputs.current-version }} - name: Set up QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v3 with: platforms: linux/amd64,linux/arm64 # Buildx is used to build multi-platform images - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v3 # Login to the docker registry - name: Login to GitHub Container Registry - uses: docker/login-action@v1 + uses: docker/login-action@v3 # Only login if this a push to main if: github.event_name == 'push' && github.ref == 'refs/heads/main' with: @@ -152,7 +152,7 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build and Push Image - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v6 with: context: . # Only push images if this is a push to main