forked from mercedes-benz/garm-provider-k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request mercedes-benz#6 from UKGEPIC/develop
Adding ukg build script
- Loading branch information
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: bst-garm-provider-k8s | ||
'on': | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
workflow_dispatch: {} | ||
concurrency: | ||
group: '${{ github.workflow }}-${{ github.ref }}' | ||
cancel-in-progress: true | ||
env: | ||
JF_URL: ${{ vars.ARTIFACTORY_URL }} | ||
JF_USER: ${{ vars.ARTIFACTORY_USERNAME }} | ||
JF_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }} | ||
jobs: | ||
build: | ||
runs-on: [garm, us-east4, container, linux, go, medium] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: build | ||
run: | | ||
# Update sources | ||
sudo apt-get update | ||
# Install dependencies | ||
sudo apt-get install -y make | ||
# Build garm provider | ||
make build | ||
- uses: jfrog/setup-jfrog-cli@v3 | ||
|
||
- name: Upload to Artifactory | ||
run: | | ||
REPO="da-build-systems-prod" | ||
REPO_DIR="garm/providers" | ||
FILE_NAME="garm-provider-k8s" | ||
jf c add ukgartifactory --url=$JF_URL --user=$JF_USER --password=$JF_PASSWORD --interactive=false | ||
ls -la | ||
jf rt upload bin/$FILE_NAME $REPO/$REPO_DIR/$FILE_NAME-${{ github.ref_name }} |