hmmm... #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, workflow_dispatch] | |
jobs: | |
cicd: | |
# https://github.com/internetarchive/cicd | |
uses: internetarchive/cicd/.github/workflows/cicd.yml@main | |
with: | |
NOMAD_VAR_HOSTNAMES: '["nomad.archive.org"]' | |
NOMAD_VAR_MEMORY: 100 # xxx | |
NOMAD_VAR_CHECK_PROTOCOL: 'tcp' | |
BASE_DOMAIN: 'ext.archive.org' | |
secrets: | |
NOMAD_TOKEN_EXT: ${{ secrets.NOMAD_TOKEN_EXT }} | |
NOMAD_TOKEN: ${{ secrets.NOMAD_TOKEN }} | |
# test: | |
# runs-on: ubuntu-latest | |
# needs: [cicd] | |
# container: | |
# # test using the just built-and-pushed docker image from the [cicd] job above | |
# image: 'docker://ghcr.io/${{ github.repository }}:${{ github.ref_name }}' | |
# steps: | |
# - run: test/test.sh | |
test: | |
runs-on: ubuntu-latest | |
needs: [cicd] | |
container: | |
# test the image that was just built above | |
image: ghcr.io/${{ github.repository }}:${{ github.ref_name }} | |
steps: | |
- run: which -a zsh | |
- run: sh -ec 'pwd; ls; ./test.sh' |