From 1c9c77eca3193e96fe9f14439716f7bf91d196bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Henrique?= Date: Fri, 24 Jan 2025 22:23:50 -0300 Subject: [PATCH] refactor CI workflow to unify build job name and support multi-platform Docker images; update image URL in docker-compose --- .gitea/workflows/master.yml | 8 ++++---- docker-compose.yml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/master.yml b/.gitea/workflows/master.yml index 6876abd..58bd600 100644 --- a/.gitea/workflows/master.yml +++ b/.gitea/workflows/master.yml @@ -5,7 +5,7 @@ on: branches: [ "main" ] jobs: - build_amd64: + build: name: Build and Push Docker Image (amd64) runs-on: ubuntu-latest @@ -39,7 +39,7 @@ jobs: file: ./Dockerfile push: true tags: git.ivanch.me/ivanch/new-home/home-page:latest - platforms: linux/amd64 + platforms: linux/amd64, linux/arm64 - name: Image digest run: echo ${{ steps.docker_build.outputs.digest }} @@ -47,7 +47,7 @@ jobs: deploy local (demo): name: Update running container runs-on: self-hosted-ubuntu-latest - needs: build_amd64 + needs: build steps: - name: Recreate container @@ -67,7 +67,7 @@ jobs: deploy live: name: Update running container runs-on: self-hosted-ubuntu-latest - needs: build_amd64 + needs: build steps: - name: Recreate container diff --git a/docker-compose.yml b/docker-compose.yml index c5afe8c..ecc51c0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ version: '3.8' services: home-page: - image: https://git.ivanch.me/ivanch/new-home/home-page:latest + image: git.ivanch.me/ivanch/new-home/home-page:latest ports: - 6800:80 restart: unless-stopped