Skip to content

[ODS-6128] Update steps to remove PgBouncer (#179) #25

[ODS-6128] Update steps to remove PgBouncer (#179)

[ODS-6128] Update steps to remove PgBouncer (#179) #25

name: Deploy ods-api-web-gateway image
on:
push:
branches: [main]
release:
types: [published]
workflow_dispatch:
env:
ENABLE_PRE_IMAGE: ${{ !startsWith(github.ref, 'refs/tags/v') }}
jobs:
build:
name: Deploy ods-api-web-gateway image
runs-on: ubuntu-latest
steps:
- name: Checkout Ed-Fi-ODS-Docker
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
- name: Log in to Docker Hub
uses: docker/#-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PERSONAL_ACCESS_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@507c2f2dc502c992ad446e3d7a5dfbe311567a96
with:
images: edfialliance/ods-api-web-gateway
labels: |
org.opencontainers.image.title=ods-api-web-gateway
org.opencontainers.image.description=Docker Image for the NGINX Gateway
flavor: |
latest=false
tags: |
type=semver,pattern={{raw}},event=tag
type=semver,pattern=v{{major}}.{{minor}},event=tag
type=semver,pattern=v{{major}},event=tag
type=raw,value=pre,enable=${{ env.ENABLE_PRE_IMAGE }}
- name: Build and push Docker image
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: Web-Gateway/Alpine
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}