Skip to content

Merge pull request #848 from oduwsdl/issue-844 #249

Merge pull request #848 from oduwsdl/issue-844

Merge pull request #848 from oduwsdl/issue-844 #249

Workflow file for this run

name: Docker Build
on:
push:
branches:
- master
tags:
- '*'
jobs:
build-image:
runs-on: ubuntu-latest
name: Docker Image
steps:
- uses: actions/checkout@v4
- id: imgtagger
run: |
imgtags=$(echo "${{ github.ref }}" | sed 's/refs\/tags\//latest,/; s/refs\/heads\///')
echo "::set-output name=imgtags::$imgtags"
- name: Build and Push to DockerHub
uses: docker/build-push-action@v6
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: ${{ secrets.DOCKER_REPO }}
tags: "${{ steps.imgtagger.outputs.imgtags }}"