Skip to content

docker push containers to dockerhub #1

docker push containers to dockerhub

docker push containers to dockerhub #1

name: docker push containers to dockerhub
on:
workflow_dispatch:
permissions:
contents: read
jobs:
docker-push-containers-to-dockerhub:
runs-on: ubuntu-latest
steps:
- name: Get repo name
id: repo-basename
run: |
echo "repo=$(basename ${{ github.repository }})" >> "$GITHUB_OUTPUT"
shell: bash
- name: Build docker image and push to DockerHub
uses: senzing-factory/github-action-docker-buildx-build@v1
with:
build-options: "-q --push --build-arg SENZING_APT_INSTALL_PACKAGE=senzingsdk-runtime --build-arg SENZING_APT_REPOSITORY_NAME=${{ secrets.SENZING_APT_BETA_REPOSITORY_PACKAGE }} --build-arg SENZING_APT_REPOSITORY_URL=${{ secrets.SENZING_APT_BETA_REPOSITORY_URL }}"
image-repository: senzing/${{ steps.repo-basename.outputs.repo }}
image-tag: latest
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
platforms: "linux/amd64,linux/arm64"
username: ${{ secrets.DOCKERHUB_USERNAME }}