Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
a3eef4dcbc
commit
de8b053ad4
3 changed files with 5 additions and 3 deletions
|
|
@ -1,6 +1,7 @@
|
|||
on:
|
||||
pull_request:
|
||||
types: [closed]
|
||||
push:
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
|
|
@ -15,3 +16,5 @@ jobs:
|
|||
- run: ls -la
|
||||
- run: make build_password
|
||||
- run: make publish_password
|
||||
env:
|
||||
VER: latest
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
on:
|
||||
pull_request:
|
||||
types: [opened, synchronize, closed]
|
||||
types: [opened, closed]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
|
|
@ -14,4 +14,3 @@ jobs:
|
|||
go-version: "1.21"
|
||||
- run: ls -la
|
||||
- run: make build_password
|
||||
- run: ls -la ./bin
|
||||
|
|
|
|||
2
Makefile
2
Makefile
|
|
@ -19,7 +19,7 @@ build_password:
|
|||
publish_password:
|
||||
$(foreach GOOS, ${OS},\
|
||||
$(foreach GOARCH, ${ARCH}, \
|
||||
$(curl --silent --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file bin/${NAME}_${GOOS}_${GOARCH}.tar.gz "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${NAME}/${VER}/${NAME}_${GOOS}_${GOARCH}.tar.gz") \
|
||||
$(curl --user ${GITHUB_ACTOR}:${GITHUB_TOKEN} --upload-file bin/${NAME}_${GOOS}_${GOARCH}.tar.gz ${GITHUB_API_URL}/packages/${GITHUB_REPOSITORY}/generic/${NAME}/${VER}/${NAME}_${GOOS}_${GOARCH}.tar.gz) \
|
||||
))
|
||||
|
||||
clean:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue