From b434b9a82e42ba4dcacf619451deb51b82772482 Mon Sep 17 00:00:00 2001 From: Muhamad Aditya Prima Date: Thu, 22 May 2025 14:58:31 +0700 Subject: [PATCH] Updated action workflows --- .gitea/workflows/master.yaml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/master.yaml b/.gitea/workflows/master.yaml index 9cc9d12..61441d0 100644 --- a/.gitea/workflows/master.yaml +++ b/.gitea/workflows/master.yaml @@ -34,6 +34,8 @@ jobs: - version: "3.19" - version: "3.20" - version: "3.21" + major_version: "3" + major_edition: "true" latest: "true" - version: "edge" steps: @@ -49,8 +51,7 @@ jobs: # uses: docker/setup-qemu-action@v3 - name: Setup Docker buildx uses: docker/setup-buildx-action@v3 - - if: ${{ matrix.params.latest != 'true' }} - name: Build and push alpine linux container image + - name: Build and push alpine linux container image uses: docker/build-push-action@v5 with: # platforms: linux/amd64,linux/arm64 @@ -60,8 +61,19 @@ jobs: OS_VERSION=${{ matrix.params.version }} tags: | quay.io/teras/alpine:${{ matrix.params.version }} + - if: ${{ matrix.params.major_edition == 'true' }} + name: Build and push latest alpine linux major version container image + uses: docker/build-push-action@v5 + with: + # platforms: linux/amd64,linux/arm64 + push: true + context: . + build-args: | + OS_VERSION=${{ matrix.params.version }} + tags: | + quay.io/teras/alpine:${{ matrix.params.major_version }} - if: ${{ matrix.params.latest == 'true' }} - name: Build and push container image + name: Build and push latest alpine linux container image uses: docker/build-push-action@v5 with: # platforms: linux/amd64,linux/arm64 @@ -70,7 +82,6 @@ jobs: build-args: | OS_VERSION=${{ matrix.params.version }} tags: | - quay.io/teras/alpine:${{ matrix.params.version }} quay.io/teras/alpine:latest # - name: Scan container image with Trivy # uses: aquasecurity/trivy-action@0.20.0