From 8d87e6508cfb6ca15a6a40454a709733e84e15cd Mon Sep 17 00:00:00 2001 From: graynk Date: Sun, 18 Jul 2021 14:57:53 +0500 Subject: [PATCH] update github actions to multi-build --- .github/workflows/publish-container.yml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/publish-container.yml b/.github/workflows/publish-container.yml index 7d48eb5..371bdf1 100644 --- a/.github/workflows/publish-container.yml +++ b/.github/workflows/publish-container.yml @@ -9,26 +9,25 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 - - name: Set up Docker Buildx + - + name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - + name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 - - name: Login to Github Actions + - + name: Login to Github Actions uses: docker/login-action@v1 with: username: ${{ github.actor }} password: ${{ secrets.CR_PAT }} registry: ghcr.io - - name: Build and push + - + name: Build and push uses: docker/build-push-action@v2 with: context: . pull: true push: true tags: ghcr.io/graynk/voicos:latest - watchtower: - runs-on: ubuntu-latest - needs: push_to_registry - steps: - - name: curl - uses: wei/curl@v1 - with: - args: -H ${{ secrets.WATCHTOWER_TOKEN }} ${{ secrets.SERVER_IP }}/v1/update + platforms: linux/amd64,linux/arm64