mirror of
https://github.com/Ride-The-Lightning/RTL
synced 2024-10-31 09:20:27 +00:00
c1f7622d45
Removing multiarch
74 lines
2.9 KiB
YAML
74 lines
2.9 KiB
YAML
version: 2
|
|
jobs:
|
|
# Define in CircleCi Project Variables: $DOCKERHUB_REPO, $DOCKERHUB_USER, $DOCKERHUB_PASS
|
|
# Publish jobs require those variables
|
|
publish_docker_linuxamd64:
|
|
machine:
|
|
docker_layer_caching: false
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
command: |
|
|
LATEST_TAG="${CIRCLE_TAG:1}"
|
|
DOCKERHUB_DESTINATION="$DOCKERHUB_REPO:$LATEST_TAG-amd64"
|
|
DOCKERHUB_DOCKERFILE="dockerfiles/Dockerfile"
|
|
sudo docker login --username=$DOCKERHUB_USER --password=$DOCKERHUB_PASS
|
|
sudo docker build --pull -t "$DOCKERHUB_DESTINATION" -f "$DOCKERHUB_DOCKERFILE" .
|
|
sudo docker push "$DOCKERHUB_DESTINATION"
|
|
no_output_timeout: 25m
|
|
|
|
publish_docker_linuxarm32v7:
|
|
machine:
|
|
docker_layer_caching: false
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
command: |
|
|
sudo docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
|
LATEST_TAG="${CIRCLE_TAG:1}"
|
|
DOCKERHUB_DESTINATION="$DOCKERHUB_REPO:$LATEST_TAG-arm32v7"
|
|
DOCKERHUB_DOCKERFILE="dockerfiles/Dockerfile.arm32v7"
|
|
sudo docker login --username=$DOCKERHUB_USER --password=$DOCKERHUB_PASS
|
|
sudo docker build --pull -t "$DOCKERHUB_DESTINATION" -f "$DOCKERHUB_DOCKERFILE" .
|
|
sudo docker push "$DOCKERHUB_DESTINATION"
|
|
no_output_timeout: 25m
|
|
|
|
publish_docker_linuxarm64v8:
|
|
machine:
|
|
docker_layer_caching: false
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
command: |
|
|
sudo docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
|
LATEST_TAG="${CIRCLE_TAG:1}"
|
|
DOCKERHUB_DESTINATION="$DOCKERHUB_REPO:$LATEST_TAG-arm64v8"
|
|
DOCKERHUB_DOCKERFILE="dockerfiles/Dockerfile.arm64v8"
|
|
sudo docker login --username=$DOCKERHUB_USER --password=$DOCKERHUB_PASS
|
|
sudo docker build --pull -t "$DOCKERHUB_DESTINATION" -f "$DOCKERHUB_DOCKERFILE" .
|
|
sudo docker push "$DOCKERHUB_DESTINATION"
|
|
no_output_timeout: 25m
|
|
|
|
workflows:
|
|
version: 2
|
|
publish:
|
|
jobs:
|
|
- publish_docker_linuxamd64:
|
|
filters:
|
|
branches:
|
|
ignore: /.*/
|
|
tags:
|
|
only: /v(?:(?<major>(?:0|[1-9](?:(?:0|[1-9])+)*))[.](?<minor>(?:0|[1-9](?:(?:0|[1-9])+)*))[.](?<patch>(?:0|[1-9](?:(?:0|[1-9])+)*))(?:-(?:([A-Za-z1-9])*))?)$/
|
|
- publish_docker_linuxarm32v7:
|
|
filters:
|
|
branches:
|
|
ignore: /.*/
|
|
tags:
|
|
only: /v(?:(?<major>(?:0|[1-9](?:(?:0|[1-9])+)*))[.](?<minor>(?:0|[1-9](?:(?:0|[1-9])+)*))[.](?<patch>(?:0|[1-9](?:(?:0|[1-9])+)*))(?:-(?:([A-Za-z1-9])*))?)$/
|
|
- publish_docker_linuxarm64v8:
|
|
filters:
|
|
branches:
|
|
ignore: /.*/
|
|
tags:
|
|
only: /v(?:(?<major>(?:0|[1-9](?:(?:0|[1-9])+)*))[.](?<minor>(?:0|[1-9](?:(?:0|[1-9])+)*))[.](?<patch>(?:0|[1-9](?:(?:0|[1-9])+)*))(?:-(?:([A-Za-z1-9])*))?)$/
|