Skip to content

Commit

Permalink
add podman-hpc build
Browse files Browse the repository at this point in the history
  • Loading branch information
dingp committed Jul 9, 2024
1 parent 9476eec commit 275f3bb
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build-image_PM.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build acme docker image on Perlmutter login node

on:
#schedule:
# - cron: "0 5 * * 2"

workflow_dispatch:

jobs:

push_to_registries:
name: Push Docker image to multiple registries
runs-on: self-hosted
permissions:
packages: write
contents: read
steps:
- name: Check out the repo
uses: actions/checkout@v4
with:
repository: dingp/acme
path: acme

- name: Log in to the Container registry
run: |
podman-hpc login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
- name: prepare build dir and build with podman-hpc
run: |
build_dir="${{ github.workspace }}/docker-build"
mkdir -p $build_dir
cd $build_dir
cp ${{ github.workspace }}/acme/Dockerfile $build_dir
cp ${{ github.workspace }}/acme/*.sh $build_dir
podman-hpc build -t ghcr.io/dingp/acme:latest -f Dockerfile .
- name: Push Docker images
run: |
podman-hpc push ghcr.io/dingp/acme:latest

0 comments on commit 275f3bb

Please # to comment.