Commit 68b90a7e authored by Carlo Landmeter's avatar Carlo Landmeter

ci: switch to using rules

this will not push to docker hub when project is not alpine based
and is not master.
parent 44f53de9
......@@ -10,8 +10,8 @@ stages:
.build:
stage: build
only:
changes:
rules:
- changes:
- Dockerfile.in
- make_images.sh
- entrypoint.sh
......@@ -45,11 +45,12 @@ build-edge:
.push:
stage: push
only:
changes:
- Dockerfile.in
- make_images.sh
- entrypoint.sh
rules:
- if: '$CI_PROJECT_PATH == "alpine/docker-abuild" && $CI_COMMIT_BRANCH == "master"'
changes:
- Dockerfile.in
- make_images.sh
- entrypoint.sh
push-v3.8:
extends: .push
......@@ -82,11 +83,12 @@ push-edge:
stage: manifest
variables:
DOCKER_CLI_EXPERIMENTAL: enabled
only:
changes:
- Dockerfile.in
- make_images.sh
- entrypoint.sh
rules:
- if: '$CI_PROJECT_PATH == "alpine/docker-abuild" && $CI_COMMIT_BRANCH == "master"'
changes:
- Dockerfile.in
- make_images.sh
- entrypoint.sh
manifest-v3.8:
extends: .manifest
......@@ -119,9 +121,10 @@ cleanup:
stage: cleanup
script:
- docker system prune --force
only:
changes:
- Dockerfile.in
- make_images.sh
- entrypoint.sh
rules:
- if: '$CI_PROJECT_PATH == "alpine/docker-abuild" && $CI_COMMIT_BRANCH == "master"'
changes:
- Dockerfile.in
- make_images.sh
- entrypoint.sh
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