Skip to content

testing arch issue

testing arch issue #41

name: Build and Push with Git Tag
on:
push:
tags:
- "*"
env:
REGISTRY: gcr.io/stackgen-gcp-marketplace
IMAGE_NAME: stackgen-deployer/deployer
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Authenticate to Google Cloud
uses: google-github-actions/auth@v2
with:
credentials_json: '${{ secrets.GCP_SA_KEY }}'
- name: Setup gcloud
uses: google-github-actions/setup-gcloud@v2
- name: Configure Docker
run: gcloud auth configure-docker gcr.io,marketplace.gcr.io
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Docker Build and push
uses: docker/build-push-action@v6
with:
context: "deployer-image"
platforms: 'linux/amd64,linux/arm64/v8'
tags: ${{ steps.meta.outputs.tags }}
push: true
provenance: false
labels: ${{ steps.meta.outputs.labels }}
secrets: |
gh_token=${{ secrets.STACKGEN_IMAGE_PULL_SECRET }}
annotations: |
com.github.actions.name=${{ github.workflow }}
com.github.actions.description=${{ github.workflow }}
index:com.googleapis.cloudmarketplace.product.service.name=services/stackgen-enterprise-platform-k8s-v2.endpoints.stackgen-gcp-marketplace.cloud.goog
com.googleapis.cloudmarketplace.product.service.name=services/stackgen-enterprise-platform-k8s-v2.endpoints.stackgen-gcp-marketplace.cloud.goog
${{ steps.meta.outputs.annotations }}