Skip to content

Commit

Permalink
github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
JailtonJunior94 committed Oct 16, 2023
1 parent 915d62c commit d4bce3a
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI-CD

on:
push:
branches: [main]
workflow_dispatch:

env:
DOCKER_USERNAME: jailtonjunior

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Docker Login
uses: docker/login-action@v1.9.0
with:
username: ${{ env.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push (Address API)
uses: docker/build-push-action@v2.4.0
with:
context: .
file: deployment/Dockerfile
push: true
tags: |
${{ env.DOCKER_USERNAME }}/address-api:latest
${{ env.DOCKER_USERNAME }}/address-api:v${{ github.run_number }}

0 comments on commit d4bce3a

Please sign in to comment.