This repository has been archived by the owner on Jun 3, 2024. It is now read-only.
update style to remove vacant shop display on map #456
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: Qwant Maps - Docker image | |
on: | |
push: | |
branches: | |
- 'master' | |
tags: | |
- 'v*' | |
env: | |
DOCKER_IMAGE_BASENAME: qwantresearch/erdapfel | |
jobs: | |
BuildDockerImage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Login to DockerHub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Get image name | |
run: | | |
VERSION=${GITHUB_REF#refs/*/} | |
if [ "$VERSION" == "master" ]; then | |
IMAGE_TAG=latest | |
else | |
IMAGE_TAG=$VERSION | |
fi | |
echo "DOCKER_IMAGE=$DOCKER_IMAGE_BASENAME:$IMAGE_TAG" >> $GITHUB_ENV | |
- run: docker build --label "org.label-schema.vcs-ref=$GITHUB_SHA" -t $DOCKER_IMAGE . | |
- if: github.event_name == 'push' | |
run: docker push $DOCKER_IMAGE |