Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Merge pull request #1473 from Qwant/fix_master #461

Merge pull request #1473 from Qwant/fix_master

Merge pull request #1473 from Qwant/fix_master #461

Workflow file for this run

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