Docker hub publish

This commit is contained in:
Joe Bellus 2022-02-16 19:55:47 -05:00
parent 7e94017c4b
commit 0a8afa2d04
1 changed files with 26 additions and 5 deletions

View File

@ -53,8 +53,8 @@ build-musl-bin:
- build-ui
stage: build
image: 'rust:latest'
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_TAG
# rules:
# - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_TAG
script:
- rustup target add x86_64-unknown-linux-musl
- apt update && apt install -y musl-tools musl-dev
@ -115,9 +115,21 @@ deploy-dev-docker:
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_TAG
deploy-prod-docker:
dependencies:
- build-musl-bin
stage: deploy
image: docker:latest
script:
- docker login -u $DOCKERHUB_USER -p $DOCKERHUB_PASS
- docker build -t https://index.docker.io/v1/fivesigma/vade .
- docker push https://index.docker.io/v1/fivesigma/vade
# rules:
# - if: $CI_COMMIT_TAG
deploy-binaries:
dependencies:
- build-x64-bin
- build-x64-bi
- build-musl-bin
- build-arm-bin
- build-win-bin
@ -139,11 +151,20 @@ release:
script:
- echo "running release_job"
release:
name: 'Release v$CI_COMMIT_TAG'
name: 'Release $CI_COMMIT_TAG'
description: 'Version $CI_COMMIT_TAG'
tag_name: '$CI_COMMIT_TAG'
ref: '$CI_COMMIT_TAG'
assets:
links:
- name: 'vade-linux-x64-$CI_COMMIT_TAG.tar.gz'
url: '${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/linux-bin/$CI_COMMIT_TAG/vade-linux-x64-$CI_COMMIT_TAG.tar.gz'
url: '${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/bin/$CI_COMMIT_TAG/vade-linux-x64-$CI_COMMIT_TAG.tar.gz'
links:
- name: 'vade-linux-arm-$CI_COMMIT_TAG.tar.gz'
url: '${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/bin/$CI_COMMIT_TAG/vade-linux-arm-$CI_COMMIT_TAG.tar.gz'
links:
- name: 'vade-linux-musl-$CI_COMMIT_TAG.tar.gz'
url: '${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/bin/$CI_COMMIT_TAG/vade-linux-musl-$CI_COMMIT_TAG.tar.gz'
links:
- name: 'vade.exe'
url: '${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/bin/$CI_COMMIT_TAG/vade.exe'