Deploy ods-api-db-admin image #5
Workflow file for this run
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
name: Deploy ods-api-db-admin 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-db-admin image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Ed-Fi-ODS-Docker | |
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 | |
- name: Log in to Docker Hub | |
uses: docker/#-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a | |
with: | |
username: ${{ secrets.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-db-admin | |
labels: | | |
org.opencontainers.image.title=ods-api-db-admin | |
org.opencontainers.image.description=Docker Image for the EdFi_Admin and EdFi_Security pair of databases running under PostgreSQL | |
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: DB-Admin/Alpine/pgsql | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} |