Skip to content

#148 Sync with other templates #91

#148 Sync with other templates

#148 Sync with other templates #91

name: Docker build container
on:
pull_request:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
permissions: {}
jobs:
docker-build-container:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- name: Get repository name
id: repo-basename
run: |
echo "repo=$(basename ${{ github.repository }})" >> "$GITHUB_OUTPUT"
shell: bash
- name: Build docker image
uses: senzing-factory/github-action-docker-buildx-build@v2
with:
image-repository: senzing/${{ steps.repo-basename.outputs.repo }}
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
username: ${{ secrets.DOCKERHUB_USERNAME }}