-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
renamed the gitaction and added new to build docker image
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
File renamed without changes.