Commit 03157108 authored by AlmAck's avatar AlmAck

use templates to semplify the YAML file

parent 910868a0
Pipeline #62 failed with stage
in 10 minutes and 20 seconds
......@@ -7,24 +7,24 @@ variables:
services:
- docker:dind
before_script:
- apk update && apk upgrade
- apk add --update bash openrc curl xz tar
chakra-iso:
.job_template: &job_definition # Hidden key that defines an anchor named 'job_definition'
script:
# builds and push the test image
- docker build -t "chakra-iso" ./chakra-iso/
- docker build -t $CONTAINER_TEST_IMAGE ./$CONTAINER_TEST_IMAGE/
- docker login -u $DOCKER_REGISTRY_USERNAME -p $DOCKER_REGISTRY_PASSWORD
- docker push $CONTAINER_REGISTRY_NAMESPACE/chakra-iso:latest
- docker tag $CONTAINER_TEST_IMAGE $CONTAINER_RELEASE_IMAGE
- docker push $CONTAINER_RELEASE_IMAGE
tags:
- docker
makepkg:
script:
# builds and push the test image
- docker build -t "makepkg" ./makepkg/
- docker login -u $DOCKER_REGISTRY_USERNAME -p $DOCKER_REGISTRY_PASSWORD
- docker push $CONTAINER_REGISTRY_NAMESPACE/makepkg:latest
tags:
- docker
<<: *job_definition # Merge the contents of the 'job_definition' alias
variables:
CONTAINER_TEST_IMAGE: makepkg
CONTAINER_RELEASE_IMAGE: $CONTAINER_REGISTRY_NAMESPACE/$CONTAINER_IMAGE_NAME:latest
chakra-iso:
<<: *job_definition # Merge the contents of the 'job_definition' alias
variables:
CONTAINER_TEST_IMAGE: chakra-iso
CONTAINER_RELEASE_IMAGE: $CONTAINER_REGISTRY_NAMESPACE/$CONTAINER_IMAGE_NAME:latest
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment