fix-Modify the incorrect link address (#163) #11
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
name: Build and Deploy | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.16 | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.16 | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
- name: Generate version | |
id: generate_version | |
run: echo "::set-output name=version::beta-$(date +%Y%m%d)-$(git rev-parse --short HEAD)" | |
- name: Make controller-gen | |
run: make controller-gen | |
- name: Build Docker image | |
run: APP=probe-master V=${{ steps.generate_version.outputs.version }} make docker-build | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | |
- name: Push Docker image | |
run: docker push kubeprober/probe-master:${{ steps.generate_version.outputs.version }} |