add a robot to mark labels #62
Workflow file for this run
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: CI | |
on: | |
pull_request_target: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
push: | |
branches: ['master'] | |
env: | |
GO_VERSION: "1.21.6" | |
jobs: | |
build: | |
name: build-dev-image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Checkout submodule | |
uses: Mushus/[email protected] | |
with: | |
basePath: # optional, default is . | |
submodulePath: libvgpu | |
- name: Setup Go environment | |
uses: actions/[email protected] | |
with: | |
go-version: 1.21 | |
- name: Get branch name | |
uses: nelonoel/[email protected] | |
- name: Docker Login | |
uses: docker/[email protected] | |
with: | |
username: ${{ secrets.DOCKERHUB_TOKEN }} | |
password: ${{ secrets.DOCKERHUB_PASSWD }} | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Generating image tag | |
id: runtime-tag | |
run: | | |
echo tag="$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | |
- run: make tidy | |
- run: SHORT_VERSION=${{ steps.runtime-tag.outputs.tag }} bash ./hack/build.sh |