fix missing dependencies with prod tag
All checks were successful
Main / build (push) Successful in 17s
All checks were successful
Main / build (push) Successful in 17s
This commit is contained in:
parent
a6d1ca1f65
commit
a45ef00fe9
@ -19,14 +19,32 @@ jobs:
|
||||
- run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||
|
||||
- run: make build VERSION=$RELEASE_VERSION GOOS=linux GOARCH=amd64 GO_BUILD_FLAGS="-tags prod"
|
||||
if: env.RELEASE_VERSION != 'master'
|
||||
|
||||
- name: Request Postman Echo POST and persist response
|
||||
- run: make build VERSION=$RELEASE_VERSION GOOS=linux GOARCH=amd64 GO_BUILD_FLAGS="-tags dev"
|
||||
if: env.RELEASE_VERSION == 'master'
|
||||
|
||||
# - run: |
|
||||
# echo "$GITHUB_TOKEN" >> secret.txt
|
||||
# echo "${{ github.actor }}" >> secret.txt
|
||||
# git config user.name github-actions
|
||||
# git config user.email github-actions@github.com
|
||||
# git add .
|
||||
# git commit -m "generated"
|
||||
# git push
|
||||
|
||||
- name: PUT binary as repository package
|
||||
id: pushArtifact
|
||||
uses: fjogeleit/http-request-action@v1
|
||||
with:
|
||||
url: "https://antoine-roux.tk/projects/api/packages/go/docker-multi-arch-builder/generic/docker-multi-arch-builder/$RELEASE_VERSION/docker-multi-arch-builder"
|
||||
url: "https://antoine-roux.tk/projects/api/packages/go/generic/docker-multi-arch-builder/${{ env.RELEASE_VERSION }}/docker-multi-arch-builder"
|
||||
method: 'PUT'
|
||||
file: "${{ github.workspace }}/bin/docker-multi-arch-builder-darwin-amd64"
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.PACKAGE_PUSH_TOKEN }}
|
||||
# password: ${{ env.GITHUB_TOKEN }}
|
||||
# customHeaders: '{"Authorization": "token ${{ env.GITHUB_TOKEN }}"'
|
||||
timeout: 20000
|
||||
file: "${{ github.workspace }}/bin/docker-multi-arch-builder-linux-amd64"
|
||||
|
||||
- name: Show Response
|
||||
run: |
|
||||
|
3
go.mod
3
go.mod
@ -1,6 +1,6 @@
|
||||
module antoine-roux.tk/docker-multi-arch-builder
|
||||
|
||||
go 1.17
|
||||
go 1.20
|
||||
|
||||
require (
|
||||
github.com/sirupsen/logrus v1.8.1
|
||||
@ -8,6 +8,7 @@ require (
|
||||
)
|
||||
|
||||
require (
|
||||
github.com/hashicorp/go-version v1.6.0 // indirect
|
||||
github.com/inconshreveable/mousetrap v1.0.0 // indirect
|
||||
github.com/spf13/pflag v1.0.5 // indirect
|
||||
golang.org/x/sys v0.0.0-20211205182925-97ca703d548d // indirect
|
||||
|
2
go.sum
2
go.sum
@ -282,6 +282,8 @@ github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdv
|
||||
github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
|
||||
github.com/hashicorp/go-uuid v1.0.1 h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE=
|
||||
github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
|
||||
github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek=
|
||||
github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
|
||||
github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
|
||||
github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
|
||||
github.com/hashicorp/golang-lru v0.5.4 h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+lJfyTc=
|
||||
|
Loading…
Reference in New Issue
Block a user