From 63ad1285a89e3f1c499289a379f98ddf192bbe06 Mon Sep 17 00:00:00 2001 From: Rintaro Okamura Date: Thu, 25 Feb 2021 15:29:04 +0900 Subject: [PATCH] Downgrade Go version to 1.15.8 because of failing push of Docker images (#1035) * :wrench: Run build workflows when workflows are modified * Downgrade Go version * :wrench: pass GO_VERSION to helm operator build Signed-off-by: Rintaro Okamura --- .github/workflows/dockers-agent-ngt-image.yml | 4 ++++ .github/workflows/dockers-agent-sidecar-image.yml | 4 ++++ .github/workflows/dockers-backup-manager-cassandra-image.yml | 4 ++++ .github/workflows/dockers-backup-manager-mysql-image.yml | 4 ++++ .github/workflows/dockers-ci-container-image.yml | 4 ++++ .github/workflows/dockers-dev-container-image.yml | 4 ++++ .github/workflows/dockers-discoverer-k8s-image.yml | 4 ++++ .github/workflows/dockers-gateway-backup-image.yml | 4 ++++ .github/workflows/dockers-gateway-filter-image.yml | 4 ++++ .github/workflows/dockers-gateway-lb-image.yml | 4 ++++ .github/workflows/dockers-gateway-meta-image.yml | 4 ++++ .github/workflows/dockers-gateway-vald-image.yml | 4 ++++ .github/workflows/dockers-helm-operator-image.yml | 4 ++++ .github/workflows/dockers-loadtest-image.yml | 4 ++++ .github/workflows/dockers-manager-compressor-image.yml | 4 ++++ .github/workflows/dockers-manager-index-image.yml | 4 ++++ .github/workflows/dockers-meta-cassandra-image.yml | 4 ++++ .github/workflows/dockers-meta-redis-image.yml | 4 ++++ Makefile.d/docker.mk | 1 + versions/GO_VERSION | 2 +- 20 files changed, 74 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dockers-agent-ngt-image.yml b/.github/workflows/dockers-agent-ngt-image.yml index 5a893f6aaf..afe22c3b86 100644 --- a/.github/workflows/dockers-agent-ngt-image.yml +++ b/.github/workflows/dockers-agent-ngt-image.yml @@ -24,6 +24,8 @@ on: - "*.*.*-*" - "v*.*.*-*" paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-agent-ngt-image.yml" - "go.mod" - "go.sum" - "internal/**" @@ -38,6 +40,8 @@ on: - "versions/NGT_VERSION" pull_request: paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-agent-ngt-image.yml" - "go.mod" - "go.sum" - "internal/**" diff --git a/.github/workflows/dockers-agent-sidecar-image.yml b/.github/workflows/dockers-agent-sidecar-image.yml index cc4eff89d6..b97b7307ff 100644 --- a/.github/workflows/dockers-agent-sidecar-image.yml +++ b/.github/workflows/dockers-agent-sidecar-image.yml @@ -24,6 +24,8 @@ on: - "*.*.*-*" - "v*.*.*-*" paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-agent-sidecar-image.yml" - "go.mod" - "go.sum" - "internal/**" @@ -38,6 +40,8 @@ on: - "versions/GO_VERSION" pull_request: paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-agent-sidecar-image.yml" - "go.mod" - "go.sum" - "internal/**" diff --git a/.github/workflows/dockers-backup-manager-cassandra-image.yml b/.github/workflows/dockers-backup-manager-cassandra-image.yml index 4bb9f36c34..6fc3df8454 100644 --- a/.github/workflows/dockers-backup-manager-cassandra-image.yml +++ b/.github/workflows/dockers-backup-manager-cassandra-image.yml @@ -24,6 +24,8 @@ on: - "*.*.*-*" - "v*.*.*-*" paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-backup-manager-cassandra-image.yml" - "go.mod" - "go.sum" - "internal/**" @@ -39,6 +41,8 @@ on: - "versions/NGT_VERSION" pull_request: paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-backup-manager-cassandra-image.yml" - "go.mod" - "go.sum" - "internal/**" diff --git a/.github/workflows/dockers-backup-manager-mysql-image.yml b/.github/workflows/dockers-backup-manager-mysql-image.yml index 48e3eb94a2..a1638c03e8 100644 --- a/.github/workflows/dockers-backup-manager-mysql-image.yml +++ b/.github/workflows/dockers-backup-manager-mysql-image.yml @@ -24,6 +24,8 @@ on: - "*.*.*-*" - "v*.*.*-*" paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-backup-manager-mysql-image.yml" - "go.mod" - "go.sum" - "internal/**" @@ -38,6 +40,8 @@ on: - "versions/GO_VERSION" pull_request: paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-backup-manager-mysql-image.yml" - "go.mod" - "go.sum" - "internal/**" diff --git a/.github/workflows/dockers-ci-container-image.yml b/.github/workflows/dockers-ci-container-image.yml index b630ef0178..9ace2ea133 100644 --- a/.github/workflows/dockers-ci-container-image.yml +++ b/.github/workflows/dockers-ci-container-image.yml @@ -19,11 +19,15 @@ on: branches: - master paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-ci-container-image.yml" - "dockers/ci/**" - "versions/GO_VERSION" - "versions/NGT_VERSION" pull_request: paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-ci-container-image.yml" - "dockers/ci/**" - "versions/GO_VERSION" - "versions/NGT_VERSION" diff --git a/.github/workflows/dockers-dev-container-image.yml b/.github/workflows/dockers-dev-container-image.yml index 1bed3b4f05..5eab89f312 100644 --- a/.github/workflows/dockers-dev-container-image.yml +++ b/.github/workflows/dockers-dev-container-image.yml @@ -19,10 +19,14 @@ on: branches: - master paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-dev-container-image.yml" - "dockers/ci/**" - "dockers/dev/**" pull_request: paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-dev-container-image.yml" - "dockers/ci/**" - "dockers/dev/**" schedule: diff --git a/.github/workflows/dockers-discoverer-k8s-image.yml b/.github/workflows/dockers-discoverer-k8s-image.yml index 2719577bb5..b9113bdf3c 100644 --- a/.github/workflows/dockers-discoverer-k8s-image.yml +++ b/.github/workflows/dockers-discoverer-k8s-image.yml @@ -24,6 +24,8 @@ on: - "*.*.*-*" - "v*.*.*-*" paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-discoverer-k8s-image.yml" - "go.mod" - "go.sum" - "internal/**" @@ -36,6 +38,8 @@ on: - "versions/GO_VERSION" pull_request: paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-discoverer-k8s-image.yml" - "go.mod" - "go.sum" - "internal/**" diff --git a/.github/workflows/dockers-gateway-backup-image.yml b/.github/workflows/dockers-gateway-backup-image.yml index 7d41c98402..e3da6e7b09 100644 --- a/.github/workflows/dockers-gateway-backup-image.yml +++ b/.github/workflows/dockers-gateway-backup-image.yml @@ -24,6 +24,8 @@ on: - "*.*.*-*" - "v*.*.*-*" paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-gateway-backup-image.yml" - "go.mod" - "go.sum" - "internal/**" @@ -39,6 +41,8 @@ on: - "versions/GO_VERSION" pull_request: paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-gateway-backup-image.yml" - "go.mod" - "go.sum" - "internal/**" diff --git a/.github/workflows/dockers-gateway-filter-image.yml b/.github/workflows/dockers-gateway-filter-image.yml index c14bc56805..9d37731f4f 100644 --- a/.github/workflows/dockers-gateway-filter-image.yml +++ b/.github/workflows/dockers-gateway-filter-image.yml @@ -24,6 +24,8 @@ on: - "*.*.*-*" - "v*.*.*-*" paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-gateway-filter-image.yml" - "go.mod" - "go.sum" - "internal/**" @@ -39,6 +41,8 @@ on: - "versions/GO_VERSION" pull_request: paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-gateway-filter-image.yml" - "go.mod" - "go.sum" - "internal/**" diff --git a/.github/workflows/dockers-gateway-lb-image.yml b/.github/workflows/dockers-gateway-lb-image.yml index 8e84fd2bc3..604d59e44c 100644 --- a/.github/workflows/dockers-gateway-lb-image.yml +++ b/.github/workflows/dockers-gateway-lb-image.yml @@ -24,6 +24,8 @@ on: - "*.*.*-*" - "v*.*.*-*" paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-gateway-lb-image.yml" - "go.mod" - "go.sum" - "internal/**" @@ -39,6 +41,8 @@ on: - "versions/GO_VERSION" pull_request: paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-gateway-lb-image.yml" - "go.mod" - "go.sum" - "internal/**" diff --git a/.github/workflows/dockers-gateway-meta-image.yml b/.github/workflows/dockers-gateway-meta-image.yml index 3d5b4e56ca..43b947687e 100644 --- a/.github/workflows/dockers-gateway-meta-image.yml +++ b/.github/workflows/dockers-gateway-meta-image.yml @@ -24,6 +24,8 @@ on: - "*.*.*-*" - "v*.*.*-*" paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-gateway-meta-image.yml" - "go.mod" - "go.sum" - "internal/**" @@ -39,6 +41,8 @@ on: - "versions/GO_VERSION" pull_request: paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-gateway-meta-image.yml" - "go.mod" - "go.sum" - "internal/**" diff --git a/.github/workflows/dockers-gateway-vald-image.yml b/.github/workflows/dockers-gateway-vald-image.yml index c18331f827..7d88ea716b 100644 --- a/.github/workflows/dockers-gateway-vald-image.yml +++ b/.github/workflows/dockers-gateway-vald-image.yml @@ -24,6 +24,8 @@ on: - "*.*.*-*" - "v*.*.*-*" paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-gateway-vald-image.yml" - "go.mod" - "go.sum" - "internal/**" @@ -37,6 +39,8 @@ on: - "versions/GO_VERSION" pull_request: paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-gateway-vald-image.yml" - "go.mod" - "go.sum" - "internal/**" diff --git a/.github/workflows/dockers-helm-operator-image.yml b/.github/workflows/dockers-helm-operator-image.yml index 0942de6c48..3819e061d1 100644 --- a/.github/workflows/dockers-helm-operator-image.yml +++ b/.github/workflows/dockers-helm-operator-image.yml @@ -24,6 +24,8 @@ on: - "*.*.*-*" - "v*.*.*-*" paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-helm-operator-image.yml" - "dockers/operator/helm/Dockerfile" - "charts/vald/Chart.yaml" - "charts/vald/values.yaml" @@ -34,6 +36,8 @@ on: - "versions/OPERATOR_SDK_VERSION" pull_request: paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-helm-operator-image.yml" - "dockers/operator/helm/Dockerfile" - "charts/vald/Chart.yaml" - "charts/vald/values.yaml" diff --git a/.github/workflows/dockers-loadtest-image.yml b/.github/workflows/dockers-loadtest-image.yml index 82d1e983fd..67c8ac2814 100644 --- a/.github/workflows/dockers-loadtest-image.yml +++ b/.github/workflows/dockers-loadtest-image.yml @@ -24,6 +24,8 @@ on: - "*.*.*-*" - "v*.*.*-*" paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-loadtest-image.yml" - "go.mod" - "go.sum" - "internal/**" @@ -37,6 +39,8 @@ on: - "versions/GO_VERSION" pull_request: paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-loadtest-image.yml" - "go.mod" - "go.sum" - "internal/**" diff --git a/.github/workflows/dockers-manager-compressor-image.yml b/.github/workflows/dockers-manager-compressor-image.yml index 5461fab78c..4f870b6afa 100644 --- a/.github/workflows/dockers-manager-compressor-image.yml +++ b/.github/workflows/dockers-manager-compressor-image.yml @@ -24,6 +24,8 @@ on: - "*.*.*-*" - "v*.*.*-*" paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-manager-compressor-image.yml" - "go.mod" - "go.sum" - "internal/**" @@ -37,6 +39,8 @@ on: - "versions/GO_VERSION" pull_request: paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-manager-compressor-image.yml" - "go.mod" - "go.sum" - "internal/**" diff --git a/.github/workflows/dockers-manager-index-image.yml b/.github/workflows/dockers-manager-index-image.yml index 817d1da4c6..589a1421fc 100644 --- a/.github/workflows/dockers-manager-index-image.yml +++ b/.github/workflows/dockers-manager-index-image.yml @@ -24,6 +24,8 @@ on: - "*.*.*-*" - "v*.*.*-*" paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-manager-index-image.yml" - "go.mod" - "go.sum" - "internal/**" @@ -37,6 +39,8 @@ on: - "versions/GO_VERSION" pull_request: paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-manager-index-image.yml" - "go.mod" - "go.sum" - "internal/**" diff --git a/.github/workflows/dockers-meta-cassandra-image.yml b/.github/workflows/dockers-meta-cassandra-image.yml index 15b10acdbc..fa1dfdea96 100644 --- a/.github/workflows/dockers-meta-cassandra-image.yml +++ b/.github/workflows/dockers-meta-cassandra-image.yml @@ -24,6 +24,8 @@ on: - "*.*.*-*" - "v*.*.*-*" paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-meta-cassandra-image.yml" - "go.mod" - "go.sum" - "internal/**" @@ -38,6 +40,8 @@ on: - "versions/GO_VERSION" pull_request: paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-meta-cassandra-image.yml" - "go.mod" - "go.sum" - "internal/**" diff --git a/.github/workflows/dockers-meta-redis-image.yml b/.github/workflows/dockers-meta-redis-image.yml index 10786d6eba..5442088efb 100644 --- a/.github/workflows/dockers-meta-redis-image.yml +++ b/.github/workflows/dockers-meta-redis-image.yml @@ -24,6 +24,8 @@ on: - "*.*.*-*" - "v*.*.*-*" paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-meta-redis-image.yml" - "go.mod" - "go.sum" - "internal/**" @@ -38,6 +40,8 @@ on: - "versions/GO_VERSION" pull_request: paths: + - ".github/actions/docker-build/actions.yaml" + - ".github/workflows/dockers-meta-redis-image.yml" - "go.mod" - "go.sum" - "internal/**" diff --git a/Makefile.d/docker.mk b/Makefile.d/docker.mk index 3d37e7013d..1ce42969af 100644 --- a/Makefile.d/docker.mk +++ b/Makefile.d/docker.mk @@ -317,6 +317,7 @@ docker/build/operator/helm: $(DOCKER_OPTS) \ -f dockers/operator/helm/Dockerfile \ -t $(ORG)/$(HELM_OPERATOR_IMAGE):$(TAG) . \ + --build-arg GO_VERSION=$(GO_VERSION) \ --build-arg MAINTAINER=$(MAINTAINER) \ --build-arg OPERATOR_SDK_VERSION=$(OPERATOR_SDK_VERSION) diff --git a/versions/GO_VERSION b/versions/GO_VERSION index e71519696f..98e863cdf8 100644 --- a/versions/GO_VERSION +++ b/versions/GO_VERSION @@ -1 +1 @@ -1.16 +1.15.8