From c27598edbc007e60e420143ebfa47c2379400cfa Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Thu, 21 Nov 2024 23:54:16 +0000 Subject: [PATCH 1/2] Update release script --- .github/workflows/release.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 79387ad..ccc37d3 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -21,9 +21,15 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + - + name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build Image uses: docker/build-push-action@v6 with: - push: false - tags: user/app:latest \ No newline at end of file + push: true + tags: inventree/inventree-caddy:latest, inventree/inventree-caddy:${{ github.event.release.tag_name }} From e895e8010f0c621b4e933dde2ac67e5e04fde348 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Thu, 21 Nov 2024 23:56:24 +0000 Subject: [PATCH 2/2] Support multiple target platforms --- .github/workflows/release.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ccc37d3..315e70b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -27,9 +27,11 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build Image uses: docker/build-push-action@v6 with: push: true + platforms: linux/amd64,linux/arm64 tags: inventree/inventree-caddy:latest, inventree/inventree-caddy:${{ github.event.release.tag_name }}