From d057a0451b4210e023603f1bda38c5bf913dbfa0 Mon Sep 17 00:00:00 2001 From: Tracey Jaquith Date: Sun, 18 Feb 2024 00:26:19 +0000 Subject: [PATCH] updated to simpler new std. IA CI/CD workflow --- .github/workflows/cicd.yml | 35 ++++++++++++++--------------------- 1 file changed, 14 insertions(+), 21 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 1064dea..bd0faf4 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -1,27 +1,20 @@ -name: CICD on: push jobs: cicd: - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - id-token: write - steps: - # https://github.com/internetarchive/cicd - - uses: internetarchive/cicd@v1 - with: - BASE_DOMAIN: 'ux-fnf-misc.archive.org' - NOMAD_TOKEN: ${{ secrets.NOMAD_TOKEN }} - REGISTRY_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NOMAD_VAR_CHECK_PATH: '/iiif/documentation' - NOMAD_VAR_CHECK_PROTOCOL: 'http' - NOMAD_ADDR: 'https://ux-fnf-misc.archive.org/' - NOMAD_VAR_COUNT_CANARIES: 0 - # NOMAD_VAR_CHECK_TIMEOUT: '10m' - NOMAD_VAR_HOSTNAMES: '["iiif.ux-fnf-misc.archive.org"]' - NOMAD_VAR_PORTS: '{8080 = "http", 8182 = "cantaloupe"}' - NOMAD_VAR_FORCE_PULL: 'true' + uses: internetarchive/cicd/.github/workflows/cicd.yml@main + secrets: + NOMAD_TOKEN: ${{ secrets.NOMAD_TOKEN }} + with: + BASE_DOMAIN: 'ux-fnf-misc.archive.org' + NOMAD_VAR_CHECK_PATH: '/iiif/documentation' + NOMAD_VAR_CHECK_PROTOCOL: 'http' + NOMAD_ADDR: 'https://ux-fnf-misc.archive.org/' + NOMAD_VAR_COUNT_CANARIES: 0 + # NOMAD_VAR_CHECK_TIMEOUT: '10m' + NOMAD_VAR_HOSTNAMES: '["iiif.ux-fnf-misc.archive.org"]' + NOMAD_VAR_PORTS: '{8080 = "http", 8182 = "cantaloupe"}' + NOMAD_VAR_FORCE_PULL: 'true' + deploy: environment: name: development