Add gitea action to build image
All checks were successful
Build Postgresql Image / build-and-push (push) Successful in 25s
All checks were successful
Build Postgresql Image / build-and-push (push) Successful in 25s
This commit is contained in:
parent
6ccfbdd09d
commit
4644447014
29
.gitea/workflows/on-tag.yaml
Normal file
29
.gitea/workflows/on-tag.yaml
Normal 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 }}
|
Loading…
Reference in New Issue
Block a user