diff --git a/.github/workflows/build-latest.yml b/.github/workflows/build-latest.yml index 5710b6a..dbb4d84 100644 --- a/.github/workflows/build-latest.yml +++ b/.github/workflows/build-latest.yml @@ -3,29 +3,26 @@ name: ci on: push: branches: - - 'main' - - 'feat/**' - - 'chore/**' + - "main" + - "feat/**" + - "chore/**" jobs: docker: runs-on: ubuntu-latest steps: - - - name: Set up QEMU - uses: docker/setup-qemu-action@v2.1.0 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2.1.0 - - - name: Login to DockerHub - uses: docker/login-action@v2.1.0 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Login to DockerHub + uses: docker/login-action@v4 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Build and push - uses: docker/build-push-action@v3.2.0 + - name: Build and push + uses: docker/build-push-action@v5 with: + platforms: linux/amd64,linux/arm64 push: true tags: nbittich/websitev2:latest diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 9ef92c7..3f708fe 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -11,23 +11,24 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out the repo - uses: actions/checkout@v3.1.0 + uses: actions/checkout@v4 - name: Log in to Docker Hub - uses: docker/login-action@v2.1.0 + 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.1.0 + uses: docker/metadata-action@v5 with: images: nbittich/websitev2 - name: Build and push Docker image - uses: docker/build-push-action@v3.2.0 + uses: docker/build-push-action@v5 with: + platforms: linux/amd64,linux/arm64 context: . push: true tags: ${{ steps.meta.outputs.tags }}