Update Semaphore configuration

This commit is contained in:
Devin Dice 2022-08-17 01:19:19 +00:00
parent d536619bdb
commit c6010f0578
3 changed files with 7 additions and 5 deletions

View File

@ -8,8 +8,10 @@ blocks:
- name: RC Build - name: RC Build
task: task:
jobs: jobs:
- name: Tag and Push - name: Build and Push
commands: commands:
- 'docker pull $DOCKER_USERNAME/cloud9-ide-vdi:latest || true'
- 'docker build --cache-from=$DOCKER_USERNAME/cloud9-ide-vdi:latest -t devindice/cloud9-ide-vdi .'
- '# 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'

View File

@ -12,6 +12,8 @@ blocks:
commands: commands:
- DATE=$(date +%y%U%u) - DATE=$(date +%y%U%u)
- 'VERSION="${DATE}"' - 'VERSION="${DATE}"'
- 'docker pull $DOCKER_USERNAME/cloud9-ide-vdi:latest || true'
- 'docker build --cache-from=$DOCKER_USERNAME/cloud9-ide-vdi:latest -t devindice/cloud9-ide-vdi .'
- '# 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'

View File

@ -5,15 +5,13 @@ agent:
type: e1-standard-2 type: e1-standard-2
os_image: ubuntu2004 os_image: ubuntu2004
blocks: blocks:
- name: Build - name: Setup
task: task:
jobs: jobs:
- name: docker build - name: Checkout
commands: commands:
- checkout - checkout
- git submodule update --init --recursive - git submodule update --init --recursive
- 'docker pull $DOCKER_USERNAME/cloud9-ide-vdi:latest || true'
- 'docker build --cache-from=$DOCKER_USERNAME/cloud9-ide-vdi:latest -t devindice/cloud9-ide-vdi .'
secrets: secrets:
- name: Dockerhub - name: Dockerhub
promotions: promotions: