Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhMoraes authored Aug 13, 2024
1 parent cdc67cd commit 8988bde
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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: ./Dockerfile
push: true
tags: |
1df9840472ec/bootcamp-microsservises${{ github.run_number }}
1df9840472ec/bootcamp-microsservises:latest

0 comments on commit 8988bde

Please sign in to comment.