Skip to content

Commit

Permalink
renamed the gitaction and added new to build docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
sabioes committed Nov 2, 2024
1 parent 22ff95e commit 53b1dad
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/docker-build-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build and Publish Docker Image

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
# Step 1: Check out the repository
- name: Checkout Code
uses: actions/checkout@v3
# Step 2: Log in Docker Hub
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
# Step 3: Build Docker Image
- name: Build Docker Image
run: |
docker build -t pcarlos/pgimporter_app:release-candidate .
# Step 4: Push the Docker Image to Docker Hub
- name: Push Docker Image to Docker Hub
run: |
docker push pcarlos/pgimport_app:release-candidate

0 comments on commit 53b1dad

Please sign in to comment.