Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/leticia-pontes/PALAVRA into…
Browse files Browse the repository at this point in the history
… develop
  • Loading branch information
leticia-pontes committed Dec 1, 2024
2 parents ff0aa00 + 079f6bd commit 24b0a3b
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI/CD Pipeline

on:
push:
branches:
- develop
pull_request:
branches:
- main

jobs:
build-and-push:
name: Build and Push Docker Image
runs-on: windows-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Log in to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build Docker image
run: |
docker build -t ${{ secrets.DOCKER_REGISTRY }}/palavra:${{ github.sha }} .
- name: Push Docker image
run: |
docker push ${{ secrets.DOCKER_REGISTRY }}/palavra:${{ github.sha }}
- name: Post-Build Cleanup
run: |
docker system prune -f

0 comments on commit 24b0a3b

Please sign in to comment.