Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only push tagged version to docker.io #106

Closed
longshuicy opened this issue Oct 13, 2023 · 0 comments · Fixed by #116
Closed

Only push tagged version to docker.io #106

longshuicy opened this issue Oct 13, 2023 · 0 comments · Fixed by #116
Assignees
Labels
enhancement New feature or request

Comments

@longshuicy
Copy link
Member

The rest PR build can go to github

example

- name: Login to GitHub Container Registry
        uses: docker/login-action@v2
        with:
          registry: ghcr.io
          username: ${{ github.actor }}
          password: ${{ secrets.GITHUB_TOKEN }}

then

 - name: Build and push ${{ matrix.name }}
        uses: docker/build-push-action@v2
        with:
          push: true
          file: ${{ matrix.FOLDER }}/extractor.dockerfile
          context: ${{ matrix.FOLDER }}
          platforms: ${{ matrix.PLATFORM }}
          cache-from: type=gha,scope=${{ matrix.name }}
          cache-to: type=gha,mode=max,scope=${{ matrix.name }}
          tags: ${{ env.IMAGES }}
          build-args: |
            VERSION=${{ env.VERSION }}
            BUILDNUMBER=${{ github.run_number }}
            GITSHA1=${{ github.sha  }}
@longshuicy longshuicy added the enhancement New feature or request label Oct 13, 2023
@ywkim312 ywkim312 linked a pull request Jan 17, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants