aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2025-01-17 14:36:21 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2025-01-17 14:36:21 -0500
commit1e043c3762b66b529f2b1ee5c849804e12f20511 (patch)
tree28a687d0c0bdabc7bc1cabfbf62822f8559460b1
parent0ce5b01a475697fc5c5794ce1b6ab3216999638b (diff)
downloadghasandbox-1e043c3762b66b529f2b1ee5c849804e12f20511.tar.gz
OK
-rw-r--r--.github/actions/stasis_indexer/action.yml51
-rw-r--r--.github/workflows/pipeline_deliver.yml13
2 files changed, 15 insertions, 49 deletions
diff --git a/.github/actions/stasis_indexer/action.yml b/.github/actions/stasis_indexer/action.yml
index 2f09710..1905b48 100644
--- a/.github/actions/stasis_indexer/action.yml
+++ b/.github/actions/stasis_indexer/action.yml
@@ -51,61 +51,18 @@ inputs:
required: false
default: ""
-env:
- REMOTE_PATHS: "/path/to/somewhere"
-
runs:
using: "composite"
steps:
- uses: actions/checkout@v4
- - uses: actions/checkout@v4
- with:
- repository: 'spacetelescope/stasis'
- path: ${{ github.workspace }}/stasis
-
- - name: Install STASIS dependencies
- run: |
- sudo apt-get update
- sudo apt-get install -y ca-certificates cmake libcurl4-openssl-dev libxml2-dev rsync
- shell: bash
-
- - name: Set TMPDIR
- run: |
- echo TMPDIR=${{ runner.temp }} >> $GITHUB_ENV
- shell: bash
-
- - name: Install SSHFS
- run: |
- sudo apt update
- sudo apt -y install sshfs
- shell: bash
-
- - name: Mount external data areas
- run: |
- for remote in $REMOTE_PATHS; do
- echo mounting $remote
- done
- shell: bash
-
- - name: Build STASIS
- run: |
- rm -rf ${{ github.workspace }}/stasis/build
- cd ${{ github.workspace }}/stasis
- mkdir -p build
- cd build
- cmake .. \
- -DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/.local" \
- -DCMAKE_BUILD_TYPE="RelWithDebInfo"
- make
- make install
- echo "PATH=${{ github.workspace }}/.local/bin:$PATH" >> $GITHUB_ENV
- shell: bash
-
- name: Run STASIS Indexer
run: |
- src="${{ inputs.artifactory_repo }}/${{ inputs.mission }}/${{ inputs.build_name }}"
+ src="${{ inputs.mission }}/${{ inputs.build_name }}"
dest="${{ inputs.destination }}/${{ inputs.mission }}/${{ inputs.build_name }}"
+ repo_src="${{ inputs.artifactory_repo }}/$src"
+
+ jf rt download "$repo_src"
stasis_indexer \
--unbuffered \
--verbose \
diff --git a/.github/workflows/pipeline_deliver.yml b/.github/workflows/pipeline_deliver.yml
index 78260e4..b76963a 100644
--- a/.github/workflows/pipeline_deliver.yml
+++ b/.github/workflows/pipeline_deliver.yml
@@ -1,7 +1,7 @@
-name: Deliver Pipeline
+name: Index Pipeline
run-name: |
- Deliver Pipeline
+ Index Pipeline
on:
workflow_dispatch:
@@ -49,6 +49,15 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
+ - name: Mount data area
+ uses: ./.github/actions/sshfs
+ with:
+ user: ${{ secrets.SVC_SSHFS_USER }}
+ password: ${{ secrets.SVC_SSHFS_PASS }}
+ remote_host: example.tld
+ remote_dir: /data
+ local_dir: /mydata
+
- name: Index
uses: ./.github/actions/stasis_indexer
with: