Skip to content

Commit

Permalink
senzing-factory/build-resources#53 use access token and composite action
Browse files Browse the repository at this point in the history
  • Loading branch information
kernelsam committed Oct 12, 2023
1 parent ce552c1 commit 2e52dd0
Showing 1 changed file with 7 additions and 20 deletions.
27 changes: 7 additions & 20 deletions .github/workflows/docker-push-containers-to-dockerhub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,11 @@ jobs:
docker-push-containers-to-dockerhub:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build docker image and push to DockerHub
uses: Senzing/github-action-docker-buildx-build@latest
with:
fetch-depth: "0"
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Docker list platforms
run: docker buildx ls
- name: Dockerhub login
run: echo "${{ secrets.DOCKERHUB_PASSWORD }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin
- name: Docker build images
run: |
docker buildx build \
--no-cache \
--platform linux/amd64 \
--push \
--tag senzing/senzingapi-tools:${{ github.ref_name }} \
--tag senzing/senzingapi-tools:latest \
.
build-options: "--push"
image-repository: senzing/test
image-tag: ${{ github.ref_name }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
username: ${{ secrets.DOCKERHUB_USERNAME }}

0 comments on commit 2e52dd0

Please sign in to comment.