Skip to content

Commit

Permalink
initial yaml file for uploading packages to S3
Browse files Browse the repository at this point in the history
// BelongsTo: CS-332
// [skip ci]
  • Loading branch information
jgabler-hpc committed May 28, 2024
1 parent 0e63afd commit cbaa911
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build_to_s3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: build and upload to S3
run-name: package build and upload triggered by ${{ github.actor }}
on: workflow_dispatch

jobs:
build:
runs-on: ubuntu-latest
container: hpcgridware/clusterscheduler-image-rocky89:latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: run build and test script
shell: bash
run: container/build_and_test.sh -bashrc -pkg -doc
- name: upload artifacts to s3
uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --follow-symlinks --delete
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'eu-north-1' # optional: defaults to us-east-1
SOURCE_DIR: 'packages' # optional: defaults to entire repository
DEST_DIR: '/'

0 comments on commit cbaa911

Please sign in to comment.