Skip to content

Commit

Permalink
push docker image in ci pipeline on default branch
Browse files Browse the repository at this point in the history
  • Loading branch information
zerotacg committed Jun 17, 2024
1 parent 4fc5042 commit 64eacf5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,9 @@ jobs:
name: docker
path: ${{ needs.strings.outputs.build-output-dir }}/docker-*
if-no-files-found: error

- name: Push image
if: github.ref == 'refs/heads/${{ env.DEFAULT_BRANCH }}'
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
docker push "${{ steps.strings.outputs.docker-image-tag }}"

0 comments on commit 64eacf5

Please sign in to comment.