Skip to content

Commit

Permalink
Update build_deb_package.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jennfshr authored Aug 21, 2024
1 parent f560b03 commit d2cdcb3
Showing 1 changed file with 22 additions and 9 deletions.
31 changes: 22 additions & 9 deletions .github/workflows/build_deb_package.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This is a basic workflow to help you get started with Actions
e# This is a basic workflow to help you get started with Actions

name: Package OVIS-LDMS SlingShot Switch Sampler for Debian ARM64

Expand Down Expand Up @@ -55,20 +55,33 @@ jobs:
run: |
echo "${DOCKER_PASSWORD}" | docker login ${DOCKER_REGISTRY} --username "${DOCKER_USERNAME}" --password-stdin
- name: Run Buildx
- name: Build Debian Package
if: success()
run: |
docker buildx build \
--platform ${{ steps.prepare.outputs.docker_platform }} \
--tag ${{ steps.prepare.outputs.docker_image }} \
--file ./Dockerfile \
--cache-to=type=gha \
--cache-from=type=gha \
--output "type=local,." \
--output "type=tar,." \
--output "type=image,push=true" \
--load .
--output "type=image,push=true" .
- name: Stage artifacts to bindmount
run: |
mkdir -p ldms-slingshot-sampler
sudo chmod -R 777 $(pwd)/ldms-slingshot-sampler
docker run -i -u 1000 -v $(pwd)/ldms-slingshot-sampler:/ldms-slingshot-sampler:rw ${{ steps.prepare.outputs.docker_image }} cp /ovis-ldms-debian-package/ovis-ldms_4.4.3-1_arm64.deb /ldms-slingshot-sampler/.
- name: list directory contents of ldms-slingshot-sampler
continue-on-error: true
run: |
ls -al ldms-slingshot-sampler
- name: Upload artifact
continue-on-error: true
uses: actions/upload-pages-artifact@v2
with:
name: ldms-slingshot-sampler
path: ldms-slingshot-sampler

# - name: archive deb package
# if: success()
# run: |
Expand Down

0 comments on commit d2cdcb3

Please sign in to comment.