Skip to content

feat: documentação da rota api/ongs POST (#211) #80

feat: documentação da rota api/ongs POST (#211)

feat: documentação da rota api/ongs POST (#211) #80

Workflow file for this run

name: Go CD
on:
push:
branches:
- main
workflow_run:
workflows: ["Go CI"]
types:
- completed
jobs:
push-image:
runs-on: ubuntu-latest
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'pull_request' || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }}
steps:
- uses: actions/checkout@v3
- name: Log into Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Build and push Docker image
run: |
SHA=${{ github.sha }}
docker build -t devhatt/pet-dex-backend:$SHA .
docker push devhatt/pet-dex-backend:$SHA
docker tag devhatt/pet-dex-backend:$SHA devhatt/pet-dex-backend:latest
docker push devhatt/pet-dex-backend:latest