Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 16 additions & 11 deletions .github/workflows/dev-image-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ on:
push:
branches:
- main
- dev-vgpu-1219
pull_request_target:
pull_request:
types:
- opened
- synchronize
Expand All @@ -30,28 +29,34 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Free disk space
# https://github.com/actions/virtual-environments/issues/709
run: |
echo "=========original CI disk space"
df -h
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
echo "=========after clean up, the left CI disk space"
df -h
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: "^1.19.x"
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Install Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Checkout submodule
uses: Mushus/checkout-submodule@v1.0.1
with:
submodulePath: libvgpu
- run: go version
- name: Get branch name
uses: nelonoel/branch-name@v1.0.1
- name: Docker Login
uses: docker/login-action@v2.1.0
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: BUILD_PLATFORMS="linux/amd64,linux/arm64" VERSION="${BRANCH_NAME}-${{ steps.runtime-tag.outputs.tag }}" make push-short
- run: BUILD_PLATFORMS="linux/amd64,linux/arm64" VERSION="${BRANCH_NAME}-${{ steps.runtime-tag.outputs.tag }}" make push-latest
- run: BUILD_PLATFORMS="linux/amd64" VERSION="${{ steps.runtime-tag.outputs.tag }}" make ubuntu20.04
1 change: 1 addition & 0 deletions .github/workflows/release-image-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,4 @@ jobs:
run: |
echo tag="$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- run: BUILD_PLATFORMS="linux/amd64,linux/arm64" VERSION="${BRANCH_NAME}" make push-short
- run: BUILD_PLATFORMS="linux/amd64,linux/arm64" VERSION="${BRANCH_NAME}-${{ steps.runtime-tag.outputs.tag }}" make push-latest
2 changes: 1 addition & 1 deletion docker/Dockerfile.ubuntu20.04
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ FROM ubuntu:20.04 AS builder
ARG TARGETARCH
RUN apt-get update
RUN apt-get -y install ca-certificates g++ wget
RUN wget -qO- https://storage.googleapis.com/golang/go1.23.7.linux-${TARGETARCH}.tar.gz | tar -C /usr/local -zx
RUN wget -qO- https://golang.google.cn/dl/go1.25.5.linux-amd64.tar.gz | tar -C /usr/local -zx
ENV GOPATH=/go
ENV PATH=$GOPATH/bin:/usr/local/go/bin:$PATH
WORKDIR /go/src/volcano.sh/devices
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module volcano.sh/k8s-device-plugin

go 1.23
go 1.25.0

require (
github.com/NVIDIA/go-gpuallocator v0.5.0
Expand Down
Loading