Ed-Fi ODS Docker v3.2.0 #39
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-compose-generator image | |
on: | |
push: | |
branches: [main] | |
release: | |
types: [published] | |
workflow_dispatch: | |
permissions: read-all | |
env: | |
ENABLE_PRE_IMAGE: ${{ !startsWith(github.ref, 'refs/tags/v') }} | |
jobs: | |
build: | |
name: Deploy ods-compose-generator image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Ed-Fi-ODS-Docker | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | |
- name: Log in to Docker Hub | |
uses: docker/#-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0 | |
with: | |
username: ${{ vars.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PERSONAL_ACCESS_TOKEN }} | |
- name: Extract metadata (tags, labels) for Docker | |
id: meta | |
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0 | |
with: | |
images: edfialliance/ods-compose-generator | |
labels: | | |
org.opencontainers.image.title=ods-compose-generator | |
org.opencontainers.image.description=Docker Image for generating compose files for Year Specific and District Specific installations | |
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@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0 | |
with: | |
context: Compose-Generator/Alpine | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} |