mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-08 21:05:54 +08:00
Merge pull request #1781 from gravitl/hotfix_v0.17.0_workflows
Hotfix v0.17.0 workflows
This commit is contained in:
commit
e07cf39fb1
2 changed files with 17 additions and 15 deletions
10
.github/workflows/publish-docker.yml
vendored
10
.github/workflows/publish-docker.yml
vendored
|
@ -56,7 +56,7 @@ jobs:
|
||||||
name: Set tag
|
name: Set tag
|
||||||
run: |
|
run: |
|
||||||
if [[ -n "${{ github.event.inputs.tag }}" ]]; then
|
if [[ -n "${{ github.event.inputs.tag }}" ]]; then
|
||||||
docker/build-push-action@v3.tag }}
|
TAG=${{ github.event.inputs.tag }}
|
||||||
elif [[ "${{ github.ref_name }}" == 'master' ]]; then
|
elif [[ "${{ github.ref_name }}" == 'master' ]]; then
|
||||||
TAG="latest"
|
TAG="latest"
|
||||||
else
|
else
|
||||||
|
@ -71,7 +71,7 @@ jobs:
|
||||||
uses: docker/setup-qemu-action@v2
|
uses: docker/setup-qemu-action@v2
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/setup-buildx-action@v2
|
||||||
-
|
-
|
||||||
name: Login to DockerHub
|
name: Login to DockerHub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
|
@ -83,7 +83,9 @@ jobs:
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
platforms: linux/amd64, linux/arm64, linux/arm/v7
|
platforms: linux/amd64, linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ github.repository }}:${{ env.TAG }}-ee
|
tags: ${{ github.repository }}:${{ env.TAG }}-ee
|
||||||
build-args: version=${{ env.TAG }}, tags="-tags=ee"
|
build-args: |
|
||||||
|
version=${{ env.TAG }}
|
||||||
|
tags=ee
|
||||||
|
|
|
@ -7,7 +7,7 @@ COPY . .
|
||||||
ENV GO111MODULE=auto
|
ENV GO111MODULE=auto
|
||||||
|
|
||||||
RUN apk add git
|
RUN apk add git
|
||||||
RUN GOOS=linux CGO_ENABLED=1 go build ${tags} -ldflags="-s -X 'main.version=${version}'" .
|
RUN GOOS=linux CGO_ENABLED=1 go build -tags ${tags} -ldflags="-s -X 'main.version=${version}'" .
|
||||||
# RUN go build -tags=ee . -o netmaker main.go
|
# RUN go build -tags=ee . -o netmaker main.go
|
||||||
FROM alpine:3.16.2
|
FROM alpine:3.16.2
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue