-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a new version of golang 1.16.8 (#39)
Signed-off-by: rick <[email protected]>
- Loading branch information
1 parent
fb80a72
commit 2cb5dcf
Showing
2 changed files
with
70 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -159,6 +159,74 @@ jobs: | |
labels: ${{ steps.metaContributors.outputs.labels }} | ||
platforms: linux/amd64,linux/arm64 | ||
|
||
BuildGo16: | ||
needs: BuildBase | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Docker meta for KubeSphere | ||
id: meta | ||
if: github.repository_owner == 'kubesphere' | ||
uses: docker/metadata-action@v3 | ||
with: | ||
images: | | ||
kubespheredev/builder-go | ||
ghcr.io/${{ github.repository_owner }}/builder-go | ||
tags: | | ||
type=ref,event=branch,suffix=1.16 | ||
type=ref,event=pr,suffix=1.16 | ||
type=semver,pattern=v{{version}},suffix=1.16 | ||
- name: Docker meta for Contributors | ||
id: metaContributors | ||
if: github.repository_owner != 'kubesphere' | ||
uses: docker/metadata-action@v3 | ||
with: | ||
images: | | ||
ghcr.io/${{ github.repository_owner }}/builder-go | ||
tags: | | ||
type=ref,event=branch,suffix=1.16 | ||
type=ref,event=pr,suffix=1.16 | ||
type=semver,pattern=v{{version}},suffix=1.16 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- name: Login to DockerHub | ||
if: github.event_name != 'pull_request' | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_HUB_USER }} | ||
password: ${{ secrets.DOCKER_HUB_SECRETS }} | ||
- name: Login to GHCR | ||
if: github.event_name != 'pull_request' | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GHCR_TOKEN }} | ||
- name: Build and push Docker images | ||
uses: docker/[email protected] | ||
if: github.repository_owner == 'kubesphere' | ||
with: | ||
context: go | ||
file: go/Dockerfile | ||
tags: ${{ steps.meta.outputs.tags }} | ||
push: ${{ github.event_name != 'pull_request' }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
platforms: linux/amd64,linux/arm64 | ||
build-args: "GOLANG_VERSION=1.16.8" | ||
- name: Build and push Docker images for Contributors | ||
uses: docker/[email protected] | ||
if: github.repository_owner != 'kubesphere' | ||
with: | ||
context: go | ||
file: go/Dockerfile | ||
tags: ${{ steps.metaContributors.outputs.tags }} | ||
push: ${{ github.event_name != 'pull_request' }} | ||
labels: ${{ steps.metaContributors.outputs.labels }} | ||
platforms: linux/amd64,linux/arm64 | ||
build-args: "GOLANG_VERSION=1.16.8" | ||
|
||
BuildMaven: | ||
needs: BuildBase | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters