|
|
|
|
@ -168,6 +168,7 @@ build:debug:cargo:x86_64-unknown-linux-musl:
@@ -168,6 +168,7 @@ build:debug:cargo:x86_64-unknown-linux-musl:
|
|
|
|
|
--platform "$PLATFORMS" |
|
|
|
|
--tag "$GL_IMAGE_TAG" |
|
|
|
|
--tag "$GL_IMAGE_TAG-commit-$CI_COMMIT_SHORT_SHA" |
|
|
|
|
--tag "$LOCAL_DH_IMAGE_TAG" |
|
|
|
|
--file "$DOCKER_FILE" . |
|
|
|
|
# Only try to push to docker hub, if auth data for dockerhub exists: |
|
|
|
|
- if [ -n "${DOCKER_HUB}" ]; then docker push "$DH_IMAGE_TAG"; fi |
|
|
|
|
@ -180,6 +181,7 @@ build:docker:next:
@@ -180,6 +181,7 @@ build:docker:next:
|
|
|
|
|
variables: |
|
|
|
|
GL_IMAGE_TAG: "$CI_REGISTRY_IMAGE/matrix-conduit:next" |
|
|
|
|
DH_IMAGE_TAG: "$DOCKER_HUB_IMAGE/matrixconduit/matrix-conduit:next" |
|
|
|
|
LOCAL_DH_IMAGE_TAG: "matrixconduit/matrix-conduit:next" # Local image tag then pushed to dockerhub |
|
|
|
|
|
|
|
|
|
build:docker:master: |
|
|
|
|
extends: .docker-shared-settings |
|
|
|
|
@ -188,6 +190,7 @@ build:docker:master:
@@ -188,6 +190,7 @@ build:docker:master:
|
|
|
|
|
variables: |
|
|
|
|
GL_IMAGE_TAG: "$CI_REGISTRY_IMAGE/matrix-conduit:latest" |
|
|
|
|
DH_IMAGE_TAG: "$DOCKER_HUB_IMAGE/matrixconduit/matrix-conduit:latest" |
|
|
|
|
LOCAL_DH_IMAGE_TAG: "matrixconduit/matrix-conduit:latest" # Local image tag then pushed to dockerhub |
|
|
|
|
|
|
|
|
|
## Build a docker image by packaging up the x86_64-unknown-linux-musl binary into an alpine image |
|
|
|
|
#.docker-shared-settings: |
|
|
|
|
|