Run the docker push before

This commit is contained in:
maurizio vitale 2019-08-27 17:00:22 +01:00
parent d8961ea904
commit 3aed425020

View File

@ -24,14 +24,14 @@ branches:
stages: stages:
- name: Lint & Build Dist - name: Lint & Build Dist
- name: Unit test - name: Unit test
- name: Release on npm
if: type = push
- name: Check bundle
if: type = push
- name: Deploy docker - name: Deploy docker
if: type = push if: type = push
- name: Update Rancher - name: Update Rancher
if: type = push if: type = push
- name: Release on npm
if: type = push
- name: Check bundle
if: type = push
- name: e2e Test - name: e2e Test
- name: Deploy PR - name: Deploy PR
if: type = pull_request if: type = pull_request
@ -106,7 +106,7 @@ jobs:
script: script:
- TAG_VERSION=$(./scripts/travis/deploy/tag-travis-branch.sh) - TAG_VERSION=$(./scripts/travis/deploy/tag-travis-branch.sh)
- echo "Running the docker with tag" $TAG_VERSION - echo "Running the docker with tag" $TAG_VERSION
- ./lib/dist/cli/bin/adf-cli docker-publish --loginCheck --loginUsername "$DOCKER_REPOSITORY_USER" --loginPassword "$DOCKER_REPOSITORY_PASSWORD" --loginRepo "$DOCKER_REPOSITORY_DOMAIN" --dockerRepo "$DOCKER_REPOSITORY" --dockerTags "$TAG_VERSION" --pathProject "$(pwd)" - ./lib/dist/cli/bin/adf-cli docker-publish --dockerRepo "$DOCKER_REPOSITORY" --dockerTags "$TAG_VERSION" --pathProject "$(pwd)"
- stage: Update Rancher - stage: Update Rancher
script: script:
- TAG_VERSION=$(./scripts/travis/deploy/tag-travis-branch.sh) - TAG_VERSION=$(./scripts/travis/deploy/tag-travis-branch.sh)