Skip to content

Commit

Permalink
DS-566: add Dockerhub push to github action
Browse files Browse the repository at this point in the history
  • Loading branch information
tedgin committed Mar 9, 2024
1 parent 6f0718e commit d99c2d9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/test_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,18 @@ jobs:
path: "${{ github.repository }}"

- name: build base image
run: ${{ github.repository }}/build
run: "${{ github.repository }}/build"

- name: build test image
run: docker buildx build "${{ github.repository }}"/test

- name: log into Docker Hub
if: ${{ github.ref_name == 'main' }}
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: publish base image
if: ${{ github.ref_name == 'main' }}
run: ${{ github.repository }}/publish
run: "${{ github.repository }}/publish"

0 comments on commit d99c2d9

Please sign in to comment.