Suporte ao uso de arquivo de configuração #4
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: | |
workflow_dispatch: | |
push: | |
branches: [ "main" ] | |
jobs: | |
CI: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Obtendo o código | |
uses: actions/checkout@v3 | |
- name: Docker Login | |
uses: docker/[email protected] | |
with: | |
username: ${{secrets.DOCKERHUB_USER}} | |
password: ${{secrets.DOCKERHUB_PWD}} | |
- name: Construção da imagem Docker worker | |
uses: docker/[email protected] | |
with: | |
context: ./src | |
file: ./src/Dockerfile | |
push: true | |
tags: | | |
fabricioveronez/app-variaveis-ambiente:v1 | |
fabricioveronez/app-variaveis-ambiente:latest | |
kubedevio/app-variaveis-ambiente:v1 | |
kubedevio/app-variaveis-ambiente:latest |