Refactor mosaic cache update condition #200
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
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} |