Set platform in build.yml

This commit is contained in:
Keannu Bernasol 2024-10-17 19:29:31 +08:00
parent bf5ee67f5f
commit 41c2189eb9

View file

@ -1,6 +1,3 @@
labels:
platform: linux/aarch64
steps: steps:
- name: build - name: build
image: docker image: docker
@ -8,7 +5,7 @@ steps:
- branch: master - branch: master
event: push event: push
commands: commands:
- docker build -t "$REGISTRY_IMAGE_TAG" . - docker build -t "$REGISTRY_IMAGE_TAG" --platform linux/arm64 .
- echo "$FORGEJO_REGISTRY_PASSWORD" | docker login "$FORGEJO_REGISTRY_URL" --password-stdin -u "$FORGEJO_REGISTRY_USERNAME" - echo "$FORGEJO_REGISTRY_PASSWORD" | docker login "$FORGEJO_REGISTRY_URL" --password-stdin -u "$FORGEJO_REGISTRY_USERNAME"
- docker push "$REGISTRY_IMAGE_TAG" - docker push "$REGISTRY_IMAGE_TAG"
volumes: volumes: