Skip to content

Update tutorial-docker-image.yml #75

Update tutorial-docker-image.yml

Update tutorial-docker-image.yml #75

name: Build tutorial image

Check failure on line 1 in .github/workflows/tutorial-docker-image.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/tutorial-docker-image.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: build
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
REGISTRY: ghcr.io
IMAGE_NAME: llnl/raja-suite-tutorial/tutorial
jobs:
build:
container:
image: kitware/cmake:3.23.1
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: build docker image
run: docker build --build-arg njobs=2 --file containers/tutorial/Dockerfile --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest .
- name: push docker image
if: github.event_name != 'pull_request'
run: docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest