Add gitea action to build image
All checks were successful
Build Postgresql Image / build-and-push (push) Successful in 25s

This commit is contained in:
Tyler 2024-12-26 17:13:12 -05:00
parent 6ccfbdd09d
commit 4644447014
Signed by: tyler
GPG Key ID: 03B27509E17EFDC8

View File

@ -0,0 +1,29 @@
name: Build Postgresql Image
on:
push:
tags:
- '*'
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Log in to container registry
uses: docker/login-action@v2
with:
registry: git.clortox.com
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: |
git.clortox.com/infrastructure/gluttony-cluster-postgresql:latest
git.clortox.com/infrastructure/gluttony-cluster-postgresql:${{ github.ref_name }}