Skip to content

Merge pull request #102 from mesoform/patch/SEC-178/snyk #3

Merge pull request #102 from mesoform/patch/SEC-178/snyk

Merge pull request #102 from mesoform/patch/SEC-178/snyk #3

Workflow file for this run

name: Build and Push Dev Image
on:
push:
branches:
- 'dev-pg-v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract branch name
id: extract_branch
run: echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
- name: Build and push Docker images
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: mesoform/postgres-ha:${{ env.BRANCH_NAME }}