Ajuste no yml #8
This file contains 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 package to github packages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Log in to GitHub Container Registry | |
run: echo ${{ secrets.PAT_DOCKER_IMAGES }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
- name: Build docker image | |
run: make build DB_PASSWORD=${{ secrets.DB_PASSWORD }} GITHUB_USER=${{ github.actor }} | |
- name: Publish docker image | |
run: make publish GITHUB_USER=${{ github.actor }} |