Skip to content

v5.17.2-release

v5.17.2-release #120

name: release-ci-build
on:
release:
branches: [master, release-2.1]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Go environment
uses: actions/setup-go@v2.1.3
with:
# The Go version to download (if necessary) and use. Supports semver spec and ranges.
go-version: 1.17
- name: install-golint
run: go get -u golang.org/x/lint/golint
- name: Go-linter
run: ./check.sh
- name: Login to DockerHub
uses: docker/login-action@v1
with:
registry: registry.cn-hangzhou.aliyuncs.com
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: registry.cn-hangzhou.aliyuncs.com/goodrain/rainbond-operator:${{ secrets.VERSION }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}