编译错误问题 #72
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 x86 Image | |
permissions: write-all | |
on: | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- 'docs/**' | |
- '**.md' | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- 'docs/**' | |
- '**.md' | |
jobs: | |
build-and-push-imag-ipamwrapper: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Build ipamwrapper bin | |
run: | | |
go mod tidy | |
git diff --exit-code | |
make build-ipamwrapper | |
- name: Build ipamwrapper | |
run: | | |
go mod tidy | |
git diff --exit-code | |
make build-ipamwrapper | |
- name: Login to Docker | |
run: | | |
docker login -u inspurwyd -p dckr_pat_yMRt21vCZj0PlDl14xJiqSOHeVg | |
- name: Push | |
run: | | |
cat VERSION | |
TAG=$(cat VERSION) | |
docker push inspurwyd/ipamwrapper:$TAG | |