X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=.github%2Fworkflows%2Fdocker.yml;h=e7be01f51afc1cdc096940d675d5509f238161f2;hb=ab14f0e0dca878dbaccc8f6a895a68e4269c9873;hp=b4ff1a4525cfa6d0bafdc0bece90c8244dc5956d;hpb=f3fbbf01402fc7491e044f160edca06ef793eb50;p=github%2FChocobozzz%2FPeerTube.git diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index b4ff1a452..e7be01f51 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -15,7 +15,7 @@ jobs: matrix: ${{ steps.set-matrix.outputs.matrix }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: master - name: Set matrix for build @@ -24,12 +24,12 @@ jobs: # FIXME: https://github.com/actions/checkout/issues/290 git fetch --force --tags - one="{ \"file\": \"./support/docker/production/Dockerfile.bullseye\", \"ref\": \"develop\", \"tags\": \"chocobozzz/peertube-test:develop-bullseye\" }" - two="{ \"file\": \"./support/docker/production/Dockerfile.buster\", \"ref\": \"master\", \"tags\": \"chocobozzz/peertube-test:production-buster,chocobozzz/peertube-test:$(git describe --abbrev=0)-buster\" }" - three="{ \"file\": \"./support/docker/production/Dockerfile.nginx\", \"ref\": \"master\", \"tags\": \"chocobozzz/peertube-webserver-test:latest\" }" + one="{ \"file\": \"./support/docker/production/Dockerfile.bullseye\", \"ref\": \"develop\", \"tags\": \"chocobozzz/peertube:develop-bullseye\" }" + two="{ \"file\": \"./support/docker/production/Dockerfile.bullseye\", \"ref\": \"master\", \"tags\": \"chocobozzz/peertube:production-bullseye,chocobozzz/peertube:$(git describe --abbrev=0)-bullseye\" }" + three="{ \"file\": \"./support/docker/production/Dockerfile.nginx\", \"ref\": \"master\", \"tags\": \"chocobozzz/peertube-webserver:latest\" }" matrix="[$one,$two,$three]" - echo ::set-output name=matrix::{\"include\":$(echo $matrix)} + echo "matrix={\"include\":$matrix}" >> $GITHUB_OUTPUT docker: runs-on: ubuntu-latest @@ -40,28 +40,30 @@ jobs: matrix: ${{ fromJson(needs.generate-matrix.outputs.matrix) }} fail-fast: false + name: ${{ matrix.tags }} + steps: - name: Set up QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: Login to DockerHub - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Checkout develop - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: ${{ matrix.ref }} - name: Docker build - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: context: '.' platforms: linux/amd64,linux/arm64