Skip to content

CI: Fix if syntax #1179

CI: Fix if syntax

CI: Fix if syntax #1179

Workflow file for this run

name: docker-seacas
on:
push:
branches: [ "master" ]
concurrency:
group: ${{ github.workflow}}-${{ github.head_ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build-latest:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
egress-policy: audit
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Docker login
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Docker build and push
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
with:
context: docker/seacas
push: true
tags: mrbuche/seacas:latest
- name: Delay before pull
run: sleep 234s
test-latest:
needs: build-latest
runs-on: ubuntu-latest
container: mrbuche/seacas
steps:
- name: Harden Runner
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
egress-policy: audit
- name: Docker pull and test
run: |
cd /seacas/build/ && ctest --output-on-failure && cd
cd /seacas/SEACAS-Test/ && make test && cd
python -c 'import exodus3 as exodus'