Skip to content

Merge branch 'master' of github.com:Project-HAMi/dcu-vgpu-device-plugin #27

Merge branch 'master' of github.com:Project-HAMi/dcu-vgpu-device-plugin

Merge branch 'master' of github.com:Project-HAMi/dcu-vgpu-device-plugin #27

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: [ "master" ]
tags:
- v[0-9]+.[0-9]+.[0-9]+.[0-9]+
- v[0-9]+.[0-9]+.[0-9]+
- v[0-9]+.[0-9]+
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Checkout submodule
uses: Mushus/[email protected]
with:
basePath: # optional, default is .
submodulePath: dcu-dcgm
- name: Get branch name
uses: nelonoel/[email protected]
- name: Docker Login
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_TOKEN }}
password: ${{ secrets.DOCKERHUB_PASSWD }}
- run: docker build . -t projecthami/dcu-vgpu-device-plugin:${BRANCH_NAME}
- run: docker push projecthami/dcu-vgpu-device-plugin:${BRANCH_NAME}