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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
10 changes: 3 additions & 7 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ jobs:
run: go build -o ./k8s-device-plugin cmd/k8s-device-plugin/main.go

docker_build:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

- name: Docker Login
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: docker/login-action@v3.6.0
with:
username: ${{ secrets.DOCKERHUB_TOKEN }}
Expand All @@ -45,13 +45,9 @@ jobs:
with:
driver-opts: image=moby/buildkit:master

- name: Build and push
- name: Build and optionally push
uses: docker/build-push-action@v6.18.0
with:
platforms: linux/amd64,linux/arm64
push: true
push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
tags: projecthami/mock-device-plugin:latest

# - run: docker build . -t projecthami/mock-device-plugin:${BRANCH_NAME}
# - run: docker push projecthami/mock-device-plugin:${BRANCH_NAME}

1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
FROM golang:1.21-bullseye AS GOBUILD

Check warning on line 14 in Dockerfile

View workflow job for this annotation

GitHub Actions / docker_build

Stage names should be lowercase

StageNameCasing: Stage name 'GOBUILD' should be lowercase More info: https://docs.docker.com/go/dockerfile/rule/stage-name-casing/
ADD . /device-plugin
ARG GOPROXY=https://goproxy.cn,direct
RUN cd /device-plugin && go build -o ./k8s-device-plugin cmd/k8s-device-plugin/main.go

FROM ubuntu:20.04
Expand Down
15 changes: 0 additions & 15 deletions vendor/github.com/davecgh/go-spew/LICENSE

This file was deleted.

145 changes: 0 additions & 145 deletions vendor/github.com/davecgh/go-spew/spew/bypass.go

This file was deleted.

38 changes: 0 additions & 38 deletions vendor/github.com/davecgh/go-spew/spew/bypasssafe.go

This file was deleted.

Loading