Skip to content

Commit

Permalink
[travis deploy] .travis.yml,Makefile,hack/image: updates from PR feed…
Browse files Browse the repository at this point in the history
…back
  • Loading branch information
joelanford committed Dec 12, 2018
1 parent 284638b commit 43112f8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ sudo: required
go:
- 1.10.3

# This top-level key is unknown to travis, so we can use
# it to create a bunch of common build step YAML anchors
# which we use in our build jobs
# The `x_base_steps` top-level key is unknown to travis,
# so we can use it to create a bunch of common build step
# YAML anchors which we use in our build jobs.
x_base_steps:
# before_install for jobs that require go builds
- &go_before_install
Expand Down
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ REPO = github.com/operator-framework/operator-sdk
BUILD_PATH = $(REPO)/commands/operator-sdk
PKGS = $(shell go list ./... | grep -v /vendor/)

SOURCE_ANSIBLE_IMAGE = quay.io/operator-framework/ansible-operator
SOURCE_HELM_IMAGE = quay.io/operator-framework/helm-operator
ANSIBLE_BASE_IMAGE = quay.io/operator-framework/ansible-operator
HELM_BASE_IMAGE = quay.io/operator-framework/helm-operator

ANSIBLE_IMAGE ?= $(SOURCE_ANSIBLE_IMAGE)
HELM_IMAGE ?= $(SOURCE_HELM_IMAGE)
ANSIBLE_IMAGE ?= $(ANSIBLE_BASE_IMAGE)
HELM_IMAGE ?= $(HELM_BASE_IMAGE)

export CGO_ENABLED:=0

Expand Down Expand Up @@ -100,17 +100,17 @@ image: image/build image/push
image/build: image/build/ansible image/build/helm

image/build/ansible:
./hack/image/build-ansible-image.sh $(SOURCE_ANSIBLE_IMAGE)
./hack/image/build-ansible-image.sh $(ANSIBLE_BASE_IMAGE)

image/build/helm:
./hack/image/build-helm-image.sh $(SOURCE_HELM_IMAGE)
./hack/image/build-helm-image.sh $(HELM_BASE_IMAGE)

image/push: image/push/ansible image/push/helm

image/push/ansible:
./hack/image/push-image-tags.sh $(SOURCE_ANSIBLE_IMAGE) $(ANSIBLE_IMAGE)
./hack/image/push-image-tags.sh $(ANSIBLE_BASE_IMAGE) $(ANSIBLE_IMAGE)

image/push/helm:
./hack/image/push-image-tags.sh $(SOURCE_HELM_IMAGE) $(HELM_IMAGE)
./hack/image/push-image-tags.sh $(HELM_BASE_IMAGE) $(HELM_IMAGE)

.PHONY: image image/build image/build/ansible image/build/helm image/push image/push/ansible image/push/helm
2 changes: 1 addition & 1 deletion hack/image/build-ansible-image.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

set -ex
set -eux

# build operator binary and base image
go build -o test/ansible-operator/ansible-operator test/ansible-operator/cmd/ansible-operator/main.go
Expand Down
2 changes: 1 addition & 1 deletion hack/image/build-helm-image.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

set -ex
set -eux

# build operator binary and base image
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o test/helm-operator/helm-operator test/helm-operator/cmd/helm-operator/main.go
Expand Down

0 comments on commit 43112f8

Please sign in to comment.