Skip to content
This repository has been archived by the owner on May 28, 2021. It is now read-only.

Commit

Permalink
Reworked wercker image build steps
Browse files Browse the repository at this point in the history
Signed-off-by: Kashif Saadat <kashifsaadat@gmail.com>
  • Loading branch information
KashifSaadat committed Sep 19, 2018
1 parent d4dbddc commit ac30cd3
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions wercker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,32 +36,20 @@ build:
cp -R mysql-operator ${WERCKER_OUTPUT_DIR}/
cp -R .git ${WERCKER_OUTPUT_DIR}/
build-image:
push-operator-image:
base-path: "/go/src/github.com/oracle/mysql-operator"
steps:
- script:
name: set environment variables
code: |
export IMAGE_PREFIX=wercker-build
export VERSION=$(cat dist/version.txt)
echo "Building mysql operator & agent images with version: ${VERSION}"
echo "Building mysql-operator image with version: ${VERSION}"
- script:
name: build mysql-operator image
code: make build-docker-mysql-operator

- script:
name: build mysql-agent image
code: make build-docker-mysql-agent

push-operator-image:
steps:
- script:
name: set environment variables
code: |
export IMAGE_PREFIX=wercker-build
export VERSION=$(cat dist/version.txt)
- internal/docker-push:
image-name: ${IMAGE_PREFIX}/mysql-operator:${VERSION}
registry: https://iad.ocir.io/v2
Expand Down Expand Up @@ -95,12 +83,18 @@ push-operator-image:
password: $OCIRPASSWORD

push-agent-image:
base-path: "/go/src/github.com/oracle/mysql-operator"
steps:
- script:
name: set environment variables
code: |
export IMAGE_PREFIX=wercker-build
export VERSION=$(cat dist/version.txt)
echo "Building mysql-agent image with version: ${VERSION}"
- script:
name: build mysql-agent image
code: make build-docker-mysql-agent

- internal/docker-push:
image-name: ${IMAGE_PREFIX}/mysql-agent:${VERSION}
Expand Down

0 comments on commit ac30cd3

Please sign in to comment.