Merge pull request #69 from Onboardbase/dependabot/npm_and_yarn/eslin… #20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish Securelog Scan Docker image | |
| on: | |
| release: | |
| types: [published] | |
| push: | |
| branches: [main] | |
| jobs: | |
| push_to_registry: | |
| name: Push Securelog Scan Docker image to GitHub Container Registry | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - name: Check out the repo | |
| uses: actions/checkout@v4 | |
| - name: Log in to GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build and push Docker image | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| push: true | |
| tags: | | |
| ghcr.io/onboardbase/securelog-scan:latest | |
| ghcr.io/onboardbase/securelog-scan:${{ github.ref_name }} |