Skip to content

Commit

Permalink
Build and push p and z-linux images to Docker Hub (#323)
Browse files Browse the repository at this point in the history
* Build and push p and z-linux images to Docker Hub

* p and z daily image build
  • Loading branch information
halim-lee authored Mar 16, 2022
1 parent 9ef4e37 commit 37f3a47
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 22 deletions.
40 changes: 20 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ jobs:
os: linux
arch: amd64
script: travis_wait 45 make setup test-e2e || travis_terminate 1
# - name: Build image on ppc64le
# stage: build
# os: linux
# arch: ppc64le
# script: make build-releases && make build-manifest
# - name: Build image on s390x
# stage: build
# os: linux
# arch: s390x
# script: make build-releases && make build-manifest
- name: Build image on ppc64le
stage: build
os: linux
arch: ppc64le
script: make build-releases
- name: Build image on s390x
stage: build
os: linux
arch: s390x
script: make build-releases
- name: Build image and bundle on amd64
stage: build
os: linux
Expand All @@ -77,16 +77,16 @@ jobs:
os: linux
arch: amd64
script: travis_wait 45 make setup test-e2e RELEASE_TARGET="releases" || travis_terminate 1
# - name: Build releases on ppc64le
# stage: rebuild-releases
# os: linux
# arch: ppc64le
# script: make build-releases RELEASE_TARGET="releases"
# - name: Build releases on s390x
# stage: rebuild-releases
# os: linux
# arch: s390x
# script: make build-releases RELEASE_TARGET="releases"
- name: Build releases on ppc64le
stage: rebuild-releases
os: linux
arch: ppc64le
script: make build-releases RELEASE_TARGET="releases"
- name: Build releases on s390x
stage: rebuild-releases
os: linux
arch: s390x
script: make build-releases RELEASE_TARGET="releases"
- name: Build releases on amd64
stage: rebuild-releases
os: linux
Expand Down
3 changes: 2 additions & 1 deletion scripts/build-manifest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,15 @@ build_manifest() {
# TODO: Add back in linux/s390x and linux/ppc64le once build platforms are back up
# --platforms "linux/amd64,linux/s390x,linux/ppc64le" \
manifest-tool push from-args \
--platforms "linux/amd64" \
--platforms "linux/amd64,linux/s390x,linux/ppc64le" \
--template "${target}-ARCH" \
--target "${target}" \
|| echo "*** WARN: Target architectures not available"
}

# Build manifest for previous releases
build_manifests() {
git fetch --tags
tags="$(git tag -l)"
while read -r tag; do
if [[ -z "${tag}" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ build_release() {
git checkout -q "${RELEASE}"
fi

docker build -t "${full_image}" .
docker build -t "${full_image}" --build-arg GO_ARCH=${arch} .
return $?
}

Expand Down
1 change: 1 addition & 0 deletions scripts/build-releases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ main() {
}

build_releases() {
git fetch --tags
tags="$(git tag -l)"
while read -r tag; do
if [[ -z "${tag}" ]]; then
Expand Down
4 changes: 4 additions & 0 deletions scripts/release-blocklist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ v0.5.1
v0.6.0
v0.7.0
v0.7.1
v0.8.0
v0.8.0-20211124-0830
v0.8.0-20211124-1750
v0.8.0-rc.1

0 comments on commit 37f3a47

Please sign in to comment.