Update Dockerfile #3
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: CI-CD | |
on: | |
push: | |
branches: ["main"] | |
workflow_dispatch: | |
jobs: | |
CI: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Obter código | |
uses: actions/[email protected] | |
- name: Autenticação Login | |
uses: docker/[email protected] | |
with: | |
username: ${{ secrets.DOCKER_USER }} | |
password: ${{ secrets.DOCKER_PWD }} | |
- name: Build and push Docker images | |
uses: docker/[email protected] | |
with: | |
context: . | |
file: ./payroll-api/Dockerfile | |
push: true | |
tags: | | |
1df9840472ec/bootcamp-microsservises${{ github.run_number }} | |
1df9840472ec/bootcamp-microsservises:latest | |