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

build outside of goreleaser #108

Merged
merged 1 commit into from
Jul 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/main.workflow
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,16 @@ action "goreleaser" {
needs = ["is-tag"]
}

action "docker build" {
uses = "actions/docker/cli@master"
args = "build -t capd-manager ."
needs = ["goreleaser"]
}

action "tag images" {
uses = "actions/docker/tag@master"
args = "capd-manager gcr.io/kubernetes1-226021/capd-manager"
needs = ["goreleaser"]
needs = ["docker build"]
}

action "push images" {
Expand Down
8 changes: 0 additions & 8 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,3 @@ checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
dockers:
- goos: linux
goarch: amd64
skip_push: true
binaries:
- capd-manager
image_templates:
- capd-manager
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ WORKDIR /tmp
RUN curl -L https://dl.k8s.io/v1.14.4/kubernetes-client-linux-amd64.tar.gz | tar xvz
RUN mv /tmp/kubernetes/client/bin/kubectl /usr/local/bin
RUN curl https://get.docker.com | sh
COPY capd-manager /usr/local/bin
COPY dist/capd-manager_linux_amd64/capd-manager /usr/local/bin

ENTRYPOINT ["capd-manager"]
13 changes: 7 additions & 6 deletions hack/verify-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,13 @@ if [[ "${VERIFY_BUILD:-true}" == "true" ]]; then
cd "${REPO_PATH}"
fi

if [[ "${VERIFY_DOCKER_BUILD:-true}" == "true" ]]; then
echo "[*] Verifying capd-manager docker image build..."
out=$(hack/verify-docker-build.sh 2>&1)
failure $? "verify-docker-build.sh" "${out}"
cd "${REPO_PATH}"
fi
# comment out for now
#if [[ "${VERIFY_DOCKER_BUILD:-true}" == "true" ]]; then
# echo "[*] Verifying capd-manager docker image build..."
# out=$(hack/verify-docker-build.sh 2>&1)
# failure $? "verify-docker-build.sh" "${out}"
# cd "${REPO_PATH}"
#fi

# exit based on verify scripts
if [[ "${res}" = 0 ]]; then
Expand Down