From 06f863302672bc37164e1ec3e0bc1667c8ed343b Mon Sep 17 00:00:00 2001 From: CJ Yetman Date: Sat, 27 Apr 2024 10:52:23 +0200 Subject: [PATCH] use `RMI-PACTA/actions/.github/workflows/docker.yml` to test build of Docker image (#228) --- .github/workflows/docker.yml | 29 +++++++++++++++++++ .github/workflows/test-Docker-build-works.yml | 29 ------------------- 2 files changed, 29 insertions(+), 29 deletions(-) create mode 100644 .github/workflows/docker.yml delete mode 100644 .github/workflows/test-Docker-build-works.yml diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 0000000..1dc1e65 --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,29 @@ +--- +# This example file will enable docker-related checks on push or PR to the main +# branch. +# It will also run the checks every weeknight at midnight UTC +# +# Note the @main in `uses:` on the last line. This will call the latest version +# of the workflow from the `main` brnach in the RMI-PACTA/actions repo. You can +# also specify a tag from that repo, or a commit SHA to pin action versions. +on: + pull_request: + push: + branches: [main] + schedule: + - cron: '0 0 * * 1,2,3,4,5' + workflow_dispatch: + +name: docker + +jobs: + docker: + name: Docker actions + uses: RMI-PACTA/actions/.github/workflows/docker.yml@main + with: + build-platform: | + [ + "linux/amd64" + ] + do-lint: false + do-check-r-sysdeps: false diff --git a/.github/workflows/test-Docker-build-works.yml b/.github/workflows/test-Docker-build-works.yml deleted file mode 100644 index cda078f..0000000 --- a/.github/workflows/test-Docker-build-works.yml +++ /dev/null @@ -1,29 +0,0 @@ -on: - push: - branches: [main] - pull_request: - -jobs: - docker-compose-build: - runs-on: ubuntu-latest - timeout-minutes: 25 - - steps: - - name: Checkout workflow.data.preparation - uses: actions/checkout@v4 - - - name: create fake directories - run: | - mkdir inputs - mkdir outputs - - - name: create .env file - run: | - cat < .env - HOST_INPUTS_PATH=/inputs - HOST_OUTPUTS_PATH=/outputs - R_CONFIG_ACTIVE=2023Q4 - EOF - - - name: Build Docker image - run: docker-compose build --no-cache