Skip to content

feat: Allow to import customized test file into the screenshots (#415) #51

feat: Allow to import customized test file into the screenshots (#415)

feat: Allow to import customized test file into the screenshots (#415) #51

on:
push:
branches:
- master
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
token: ${{ secrets.GITHUB_TOKEN }}
publish-release:
needs: release-please
runs-on: ubuntu-latest
if: ${{ needs.release-please.outputs.release_created }}
steps:
- uses: linz/action-typescript@v2
- name: Pull Tags
run: |
git fetch --depth=1 origin +refs/tags/*:refs/tags/* # see https://stackoverflow.com/a/60184319/9285308
- name: Set up Docker Qemu
id: qemu
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Set GIT_VERSION
id: version
run: |
GIT_VERSION=$(git describe --tags --always --match 'v*')
GIT_VERSION_MAJOR=$(echo $GIT_VERSION | cut -d. -f1)
GIT_VERSION_MAJOR_MINOR=$(echo $GIT_VERSION | cut -d. -f1,2)
echo "version=${GIT_VERSION}" >> $GITHUB_OUTPUT
echo "version_major=${GIT_VERSION_MAJOR}" >> $GITHUB_OUTPUT
echo "version_major_minor=${GIT_VERSION_MAJOR_MINOR}" >> $GITHUB_OUTPUT
- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
- name: "basemaps-screenshot/cli - Build and push"
uses: docker/build-push-action@v4
with:
context: ./
platforms: linux/arm64,linux/amd64
tags: |
ghcr.io/linz/basemaps-screenshot/cli:${{ steps.version.outputs.version_major }}
ghcr.io/linz/basemaps-screenshot/cli:${{ steps.version.outputs.version_major_minor }}
ghcr.io/linz/basemaps-screenshot/cli:${{ steps.version.outputs.version }}
push: true