Release #121
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: Release | |
on: [workflow_dispatch] | |
env: | |
DOCKER_REGISTRY: docker-public.terrestris.de/terrestris | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ๐ฐ | |
uses: actions/checkout@v4 | |
- name: Setup Node.js ๐งฎ | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install dependencies โฌ | |
run: npm ci | |
- name: Build (dist) artifacts ๐๏ธ | |
run: npm run build:dist | |
- name: Semantic Release ๐ | |
uses: cycjimmy/semantic-release-action@v4 | |
id: semantic | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
with: | |
semantic_version: 23 | |
- name: Login to Nexus โจ๏ธ | |
uses: docker/login-action@v3 | |
with: | |
registry: ${{ env.DOCKER_REGISTRY }} | |
username: ${{ secrets.NEXUS_USERNAME }} | |
password: ${{ secrets.NEXUS_PASSWORD }} | |
- name: Build docker image (latest) ๐๏ธ | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
tags: | | |
${{ env.DOCKER_REGISTRY }}/shogun-gis-client:latest | |
load: true | |
- name: Build docker image (version) ๐๏ธ | |
if: steps.semantic.outputs.new_release_published == 'true' | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
tags: | | |
${{ env.DOCKER_REGISTRY }}/shogun-gis-client:${{ steps.semantic.outputs.new_release_version }} | |
load: true | |
- name: Push docker image to Nexus (latest) ๐ | |
run: | | |
docker push ${{ env.DOCKER_REGISTRY }}/shogun-gis-client:latest | |
- name: Push docker image to Nexus (version) ๐ | |
if: steps.semantic.outputs.new_release_published == 'true' | |
run: | | |
docker push ${{ env.DOCKER_REGISTRY }}/shogun-gis-client:${{ steps.semantic.outputs.new_release_version }} | |
- name: Build docker image e2e-tests (latest) ๐๏ธ | |
uses: docker/build-push-action@v6 | |
with: | |
file: Dockerfile.e2e | |
context: . | |
tags: | | |
${{ env.DOCKER_REGISTRY }}/shogun-gis-client-e2e-tests:latest | |
load: true | |
- name: Build docker image e2e-tests (version) ๐๏ธ | |
if: steps.semantic.outputs.new_release_published == 'true' | |
uses: docker/build-push-action@v6 | |
with: | |
file: Dockerfile.e2e | |
context: . | |
tags: | | |
${{ env.DOCKER_REGISTRY }}/shogun-gis-client-e2e-tests:${{ steps.semantic.outputs.new_release_version }} | |
load: true | |
- name: Push docker image to Nexus e2e-tests (latest) ๐ | |
run: | | |
docker push ${{ env.DOCKER_REGISTRY }}/shogun-gis-client-e2e-tests:latest | |
- name: Push docker image to Nexus e2e-tests (version) ๐ | |
if: steps.semantic.outputs.new_release_published == 'true' | |
run: | | |
docker push ${{ env.DOCKER_REGISTRY }}/shogun-gis-client-e2e-tests:${{ steps.semantic.outputs.new_release_version }} |