Skip to content

Merge pull request #26 from mimiro-io/feature/outputConfigFiles #25

Merge pull request #26 from mimiro-io/feature/outputConfigFiles

Merge pull request #26 from mimiro-io/feature/outputConfigFiles #25

Workflow file for this run

name: Build and push docker image to dockerhub
on:
push:
tags:
- "*" # triggers only if push new tag version, like `0.8.4` or else
jobs:
docker:
name: Deploy docker image
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v2
- name: Set github tag output
id: vars
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
id: docker_login
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push Image to DockerHub
id: dockerhub_push_latest
uses: docker/build-push-action@v2
with:
push: true
tags: mimiro/datahub-config-deployment:${{ steps.vars.outputs.tag }} , mimiro/datahub-config-deployment:latest