Skip to content

Merge pull request #5952 from brockdyer03/nxs-test-args #202

Merge pull request #5952 from brockdyer03/nxs-test-args

Merge pull request #5952 from brockdyer03/nxs-test-args #202

Workflow file for this run

name: Build and Push QMCPACK Development Image to GHCR
on:
push:
branches:
- develop
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push-image:
if: github.repository == 'qmcpack/qmcpack'
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Log in to the Container registry
uses: docker/login-action@v4
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Build and push Docker image
uses: docker/build-push-action@v7
with:
context: .
file: tests/test_automation/containers/Dockerfile_gcc_mpi_develop_complete
push: true
tags: |
ghcr.io/qmcpack/qmcpack_complete_develop:latest
build-args: |
GIT_COMMIT_SHA=${{ github.sha }}
platforms: linux/amd64
cache-from: type=gha
cache-to: type=gha,mode=max