This commit is contained in:
parent
a45ef00fe9
commit
24337e9e00
@ -24,14 +24,16 @@ jobs:
|
|||||||
- run: make build VERSION=$RELEASE_VERSION GOOS=linux GOARCH=amd64 GO_BUILD_FLAGS="-tags dev"
|
- run: make build VERSION=$RELEASE_VERSION GOOS=linux GOARCH=amd64 GO_BUILD_FLAGS="-tags dev"
|
||||||
if: env.RELEASE_VERSION == 'master'
|
if: env.RELEASE_VERSION == 'master'
|
||||||
|
|
||||||
# - run: |
|
- name: DELETE old master binary
|
||||||
# echo "$GITHUB_TOKEN" >> secret.txt
|
uses: fjogeleit/http-request-action@v1
|
||||||
# echo "${{ github.actor }}" >> secret.txt
|
with:
|
||||||
# git config user.name github-actions
|
url: "https://antoine-roux.tk/projects/api/packages/go/generic/docker-multi-arch-builder/${{ env.RELEASE_VERSION }}"
|
||||||
# git config user.email github-actions@github.com
|
method: 'DELETE'
|
||||||
# git add .
|
continue-on-error: true
|
||||||
# git commit -m "generated"
|
username: ${{ github.actor }}
|
||||||
# git push
|
password: ${{ secrets.PACKAGE_PUSH_TOKEN }}
|
||||||
|
timeout: 20000
|
||||||
|
if: env.RELEASE_VERSION == 'master'
|
||||||
|
|
||||||
- name: PUT binary as repository package
|
- name: PUT binary as repository package
|
||||||
id: pushArtifact
|
id: pushArtifact
|
||||||
@ -41,8 +43,6 @@ jobs:
|
|||||||
method: 'PUT'
|
method: 'PUT'
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.PACKAGE_PUSH_TOKEN }}
|
password: ${{ secrets.PACKAGE_PUSH_TOKEN }}
|
||||||
# password: ${{ env.GITHUB_TOKEN }}
|
|
||||||
# customHeaders: '{"Authorization": "token ${{ env.GITHUB_TOKEN }}"'
|
|
||||||
timeout: 20000
|
timeout: 20000
|
||||||
file: "${{ github.workspace }}/bin/docker-multi-arch-builder-linux-amd64"
|
file: "${{ github.workspace }}/bin/docker-multi-arch-builder-linux-amd64"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user