upload .gitlab-ci.yml

This commit is contained in:
ale 2024-06-23 01:20:21 +02:00
parent 6651f11d8e
commit 443b3b48a1

View File

@ -16,10 +16,10 @@ build_amd64:
script: script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker buildx build -t snort2:amd64 docker/ - docker buildx build -t snort2:amd64 docker/
- docker tag snort2:amd64 $CI_REGISTRY/manalejandro/snort2-api/snort2:amd64 - docker tag snort2:amd64 $CI_REGISTRY/manalejandro/snort2-docker/snort2:amd64
- docker tag snort2:amd64 $CI_REGISTRY/manalejandro/snort2-api/snort2:latest - docker tag snort2:amd64 $CI_REGISTRY/manalejandro/snort2-docker/snort2:latest
- docker push $CI_REGISTRY/manalejandro/snort2-api/snort2:amd64 - docker push $CI_REGISTRY/manalejandro/snort2-docker/snort2:amd64
- docker push $CI_REGISTRY/manalejandro/snort2-api/snort2:latest - docker push $CI_REGISTRY/manalejandro/snort2-docker/snort2:latest
build_arm64: build_arm64:
stage: build_arm64 stage: build_arm64
@ -29,5 +29,5 @@ build_arm64:
script: script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker buildx build --platform arm64 -t snort2:arm64 docker/ - docker buildx build --platform arm64 -t snort2:arm64 docker/
- docker tag snort2:arm64 $CI_REGISTRY/manalejandro/snort2-api/snort2:arm64 - docker tag snort2:arm64 $CI_REGISTRY/manalejandro/snort2-docker/snort2:arm64
- docker push $CI_REGISTRY/manalejandro/snort2-api/snort2:arm64 - docker push $CI_REGISTRY/manalejandro/snort2-docker/snort2:arm64