diff --git a/.github/workflows/aste-pr.yml b/.github/workflows/aste-pr.yml new file mode 100644 index 0000000..ff53c06 --- /dev/null +++ b/.github/workflows/aste-pr.yml @@ -0,0 +1,12 @@ +name: "Check ASTE" +on: + pull_request: + paths: + - 'ci-aste.dockerfile' + +jobs: + latest: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: make aste diff --git a/.github/workflows/aste.yml b/.github/workflows/aste.yml new file mode 100644 index 0000000..d42b4b5 --- /dev/null +++ b/.github/workflows/aste.yml @@ -0,0 +1,23 @@ +name: "Update ASTE" +on: + workflow_dispatch: + push: + branches: + - master + paths: + - 'ci-aste.dockerfile' + +jobs: + latest: + runs-on: ubuntu-latest + env: + image: aste + steps: + - uses: actions/checkout@v2 + - uses: docker/build-push-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USER }} + password: ${{ secrets.DOCKERHUB_PASS }} + dockerfile: "./ci-${{ env.image }}.dockerfile" + repository: precice/ci-${{ env.image }} + tags: latest diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml new file mode 100644 index 0000000..bad63e1 --- /dev/null +++ b/.github/workflows/daily.yml @@ -0,0 +1,22 @@ +name: "Daily Update" +on: + workflow_dispatch: + schedule: + - cron: '0 4 * * *' # preCICE nightly runs at 2am, this one two hours later + +jobs: + latest: + strategy: + matrix: + image: [aste] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: docker/setup-buildx-action@v3 + - uses: docker/build-push-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USER }} + password: ${{ secrets.DOCKERHUB_PASS }} + dockerfile: "./ci-${{ matrix.image }}.dockerfile" + repository: precice/ci-${{ matrix.image }} + tags: latest