Commits

Tim Donohue authored and GitHub committed d955fe7ca35 Merge
Merge pull request #1440 from tdonohue/docker_github_action

Add GitHub action to build Docker images and push to DockerHub
No tags
gidlmaster

.github/workflows/build.yml

Modified
22 22 strategy:
23 23 # Create a matrix of Node versions to test against (in parallel)
24 24 matrix:
25 25 node-version: [12.x, 14.x]
26 26 # Do NOT exit immediately if one matrix job fails
27 27 fail-fast: false
28 28 # These are the actual CI steps to perform per job
29 29 steps:
30 30 # https://github.com/actions/checkout
31 31 - name: Checkout codebase
32 - uses: actions/checkout@v1
32 + uses: actions/checkout@v2
33 33
34 34 # https://github.com/actions/setup-node
35 35 - name: Install Node.js ${{ matrix.node-version }}
36 - uses: actions/setup-node@v1
36 + uses: actions/setup-node@v2
37 37 with:
38 38 node-version: ${{ matrix.node-version }}
39 39
40 40 # If CHROME_VERSION env variable specified above, then pin to that version.
41 41 # Otherwise, just install latest version of Chrome.
42 42 - name: Install Chrome (for e2e tests)
43 43 run: |
44 44 if [[ -z "${CHROME_VERSION}" ]]
45 45 then
46 46 echo "Installing latest stable version"
75 75 - name: Run build
76 76 run: yarn run build:prod
77 77
78 78 - name: Run specs (unit tests)
79 79 run: yarn run test:headless
80 80
81 81 # NOTE: Angular CLI only supports code coverage for specs. See https://github.com/angular/angular-cli/issues/6286
82 82 # Upload coverage reports to Codecov (for Node v12 only)
83 83 # https://github.com/codecov/codecov-action
84 84 - name: Upload coverage to Codecov.io
85 - uses: codecov/codecov-action@v1
85 + uses: codecov/codecov-action@v2
86 86 if: matrix.node-version == '12.x'
87 87
88 88 # Using docker-compose start backend using CI configuration
89 89 # and load assetstore from a cached copy
90 90 - name: Start DSpace REST Backend via Docker (for e2e tests)
91 91 run: |
92 92 docker-compose -f ./docker/docker-compose-ci.yml up -d
93 93 docker-compose -f ./docker/cli.yml -f ./docker/cli.assetstore.yml run --rm dspace-cli
94 94 docker container ls
95 95

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut