mirror of
https://github.com/openappsec/openappsec.git
synced 2025-06-28 16:41:02 +03:00
Update build.yml
added create release & add artifact
This commit is contained in:
parent
1a0dce69f0
commit
97faf7edd7
29
.github/workflows/build.yml
vendored
29
.github/workflows/build.yml
vendored
@ -8,13 +8,6 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
name: 'check out repository'
|
name: 'check out repository'
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
|
||||||
uses: docker/login-action@v1
|
|
||||||
with:
|
|
||||||
registry: ghcr.io
|
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Build the agent
|
- name: Build the agent
|
||||||
run: |
|
run: |
|
||||||
./scripts/entry.sh agent ubuntu focal
|
./scripts/entry.sh agent ubuntu focal
|
||||||
@ -25,3 +18,25 @@ jobs:
|
|||||||
name: openappsec-focal.tar.gz
|
name: openappsec-focal.tar.gz
|
||||||
path: output/ubuntu/focal/agent/openappsec-focal.tar.gz
|
path: output/ubuntu/focal/agent/openappsec-focal.tar.gz
|
||||||
|
|
||||||
|
- name: Create Release
|
||||||
|
id: create_release
|
||||||
|
uses: actions/create-release@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
tag_name: 0.0.0
|
||||||
|
release_name: test release with artifact
|
||||||
|
draft: true
|
||||||
|
prerelease: false
|
||||||
|
|
||||||
|
- name: Upload Release Asset
|
||||||
|
id: upload-release-asset
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
|
asset_path: output/ubuntu/focal/agent/openappsec-focal.tar.gz
|
||||||
|
asset_name: openappsec-focal.tar.gz
|
||||||
|
asset_content_type: application/x-tar
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user