-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (36 loc) · 1.29 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: QWC2 Build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout submodules
shell: bash
run: |
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '18.x'
- name: Install all required dependencies
run: yarn install
- name: Compile a deployable application bundle
run: yarn run prod
- name: Get version tag
id: get_tag
run: |
if [ ${{ startsWith(github.ref, 'refs/tags/') }} = true ]; then
echo ::set-output name=tag::latest,${GITHUB_REF:10}
else
echo ::set-output name=tag::latest
fi
- name: Build and publish sogis-map-viewer container
uses: elgohr/[email protected]
with:
name: sourcepole/sogis-map-viewer
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
tags: "${{ steps.get_tag.outputs.tag }}"