Skip to content

Commit

Permalink
Trying hoomd hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
erjank committed Jul 3, 2024
1 parent 71a54e6 commit 53b5e74
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build_icomseB.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: build_icomseB

on:
push:
branches: ['main']
# Run when container is changed
paths:
- 'containers/icomse/dockerfile_icomseB'
# Allows workflow to be manually triggered
workflow_dispatch:

env:
REGISTRY: ghcr.io
IMAGE_NAME: icomseB

jobs:
build-and-push-image:
if: github.repository_owner == 'cmelab'
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Log in to the Container registry
uses: docker/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GHCR_TOKEN }}

- name: Build and push Docker image
uses: docker/[email protected]
with:
context: .
file: ./containers/icomse/dockerfile_icomseB
push: true
tags: ${{ env.REGISTRY }}/cmelab/${{ env.IMAGE_NAME }}:latest
5 changes: 5 additions & 0 deletions containers/icomse/dockerfile_icomseB
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM glotzerlab/software

# configure unprivileged user
RUN useradd --create-home --shell /bin/bash icomse-software
USER icomse-software:icomse-software

0 comments on commit 53b5e74

Please sign in to comment.