mucking with expansions
This commit is contained in:
parent
5254450ec5
commit
0d12590ad0
@ -21,8 +21,8 @@ pipeline:
|
|||||||
- SOURCE_ORGANIZATION=mirrors
|
- SOURCE_ORGANIZATION=mirrors
|
||||||
- REPO=matrix-service-synapse
|
- REPO=matrix-service-synapse
|
||||||
commands:
|
commands:
|
||||||
- git clone https://${REGISTRY}/${SOURCE_ORGANIZATION}/${REPO}.git /git/${REPO}
|
- git clone https://$${REGISTRY}/$${SOURCE_ORGANIZATION}/$${REPO}.git /git/$${REPO}
|
||||||
- cd /git/${REPO}
|
- cd /git/$${REPO}
|
||||||
- git checkout $TAG
|
- git checkout $TAG
|
||||||
|
|
||||||
docker-build:
|
docker-build:
|
||||||
@ -42,14 +42,14 @@ pipeline:
|
|||||||
- CONTEXT=.
|
- CONTEXT=.
|
||||||
commands:
|
commands:
|
||||||
- export DOCKER_BUILDKIT=1
|
- export DOCKER_BUILDKIT=1
|
||||||
- cd /git/${REPO}
|
- cd /git/$${REPO}
|
||||||
- echo $REGISTRY_PASSWORD | docker login ${REGISTRY} -u ${REGISTRY_USER} --password-stdin
|
- echo $REGISTRY_PASSWORD | docker login $${REGISTRY} -u $${REGISTRY_USER} --password-stdin
|
||||||
- docker build
|
- docker build
|
||||||
-t ${REGISTRY}/${ORGANIZATION}/${REPO}:$TAG
|
-t $${REGISTRY}/$${ORGANIZATION}/$${REPO}:$TAG
|
||||||
-t ${REGISTRY}/${ORGANIZATION}/${REPO}:$(date +%F)
|
-t $${REGISTRY}/$${ORGANIZATION}/$${REPO}:$(date +%F)
|
||||||
-t ${REGISTRY}/${ORGANIZATION}/${REPO}:latest
|
-t $${REGISTRY}/$${ORGANIZATION}/$${REPO}:latest
|
||||||
--pull
|
--pull
|
||||||
--build-arg ${BUILD_ARGS}
|
--build-arg $${BUILD_ARGS}
|
||||||
-f ${DOCKERFILE}
|
-f $${DOCKERFILE}
|
||||||
${CONTEXT}
|
$${CONTEXT}
|
||||||
- docker push -a ${REGISTRY}/${ORGANIZATION}/${REPO}
|
- docker push -a $${REGISTRY}/$${ORGANIZATION}/$${REPO}
|
Loading…
Reference in New Issue
Block a user