Skip to content

Commit

Permalink
Merge pull request mercedes-benz#6 from UKGEPIC/develop
Browse files Browse the repository at this point in the history
Adding ukg build script
  • Loading branch information
Hdom authored Apr 11, 2024
2 parents 5a8b67e + 71992fa commit 7b00a39
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/build-ukg.yaml
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 }}

0 comments on commit 7b00a39

Please sign in to comment.