mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2024-11-16 19:59:24 +08:00
Set build step to run on x86
This commit is contained in:
parent
41c2189eb9
commit
2d6f34012b
1 changed files with 4 additions and 1 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
labels:
|
||||||
|
platform: linux/amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: docker
|
image: docker
|
||||||
|
@ -5,7 +8,7 @@ steps:
|
||||||
- branch: master
|
- branch: master
|
||||||
event: push
|
event: push
|
||||||
commands:
|
commands:
|
||||||
- docker build -t "$REGISTRY_IMAGE_TAG" --platform linux/arm64 .
|
- docker build -t "$REGISTRY_IMAGE_TAG" .
|
||||||
- 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:
|
||||||
|
|
Loading…
Reference in a new issue