Update Semaphore configuration

This commit is contained in:
Devin Dice 2022-08-17 00:42:44 +00:00
parent 77e99eb834
commit d536619bdb
3 changed files with 12 additions and 9 deletions

View File

@ -1,18 +1,18 @@
version: v1.0 version: v1.0
name: Pipeline 2 name: Deploy Release Candidate
agent: agent:
machine: machine:
type: e1-standard-2 type: e1-standard-2
os_image: ubuntu2004 os_image: ubuntu2004
blocks: blocks:
- name: Tag - name: RC Build
task: task:
jobs: jobs:
- name: Tag build as testing - name: Tag and Push
commands: commands:
- '# Login to Dockerhub' - '# Login to Dockerhub'
- 'echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin' - 'echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin'
- '# Create a version' - '# Create a version'
- 'docker push $DOCKER_USERNAME/cloud9-ide-vdi:latest' - 'docker push $DOCKER_USERNAME/cloud9-ide-vdi:testing'
secrets: secrets:
- name: Dockerhub - name: Dockerhub

View File

@ -1,18 +1,21 @@
version: v1.0 version: v1.0
name: Pipeline 3 name: Deploy Production
agent: agent:
machine: machine:
type: e1-standard-2 type: e1-standard-2
os_image: ubuntu2004 os_image: ubuntu2004
blocks: blocks:
- name: Tagging - name: Production Build
task: task:
jobs: jobs:
- name: Tag build with version - name: Tag and Push
commands: commands:
- DATE=$(date +%y%U%u)
- 'VERSION="${DATE}"'
- '# Login to Dockerhub' - '# Login to Dockerhub'
- 'echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin' - 'echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin'
- '# Create a version' - '# Create a version'
- 'docker push $DOCKER_USERNAME/cloud9-ide-vdi:testing' - 'docker push $DOCKER_USERNAME/cloud9-ide-vdi:$VERSION'
- 'docker push $DOCKER_USERNAME/cloud9-ide-vdi:latest'
secrets: secrets:
- name: Dockerhub - name: Dockerhub

View File

@ -13,7 +13,7 @@ blocks:
- checkout - checkout
- git submodule update --init --recursive - git submodule update --init --recursive
- 'docker pull $DOCKER_USERNAME/cloud9-ide-vdi:latest || true' - 'docker pull $DOCKER_USERNAME/cloud9-ide-vdi:latest || true'
- 'docker build --cache-from=$DOCKER_USERNAME/cloud9-ide-vdi:latest .' - 'docker build --cache-from=$DOCKER_USERNAME/cloud9-ide-vdi:latest -t devindice/cloud9-ide-vdi .'
secrets: secrets:
- name: Dockerhub - name: Dockerhub
promotions: promotions: