-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 1.18 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
name: CI
'on':
- push
- fork
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run tests
working-directory: .
run: |-
set -e
npm install
npm run test
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Building with Docker
working-directory: .
env:
NEXUS_NPM_TOKEN: ${{ secrets.NEXUS_NPM_TOKEN }}
NEXUS_DEPLOYER: ${{ secrets.NEXUS_DEPLOYER }}
NEXUS_DEPLOYER_PASS: ${{ secrets.NEXUS_DEPLOYER_PASS }}
run: |-
set -e
wget -q https://kontur-github-runners.s3.eu-central-1.amazonaws.com/public_resources/projects/common/2022091500.tar.xz && tar -C "$HOME" -xf 2022091500.tar.xz && rm 2022091500.tar.xz
echo '${{ secrets.NEXUS_DEPLOYER_PASS }}' | docker login nexus.kontur.io:8085 -u '${{ secrets.NEXUS_DEPLOYER }}' --password-stdin
echo "Build docker image"
docker build -t nexus.kontur.io:8085/konturdev/raster-tiler:${GITHUB_SHA} -f Dockerfile .
echo "Push docker image"
docker push nexus.kontur.io:8085/konturdev/raster-tiler:${GITHUB_SHA}