Skip to content

Build and Publish Docker #161

Build and Publish Docker

Build and Publish Docker #161

Workflow file for this run

name: Build and Publish Docker
on:
push:
branches:
# Only commits to master trigger build
- master
paths-ignore:
# Don't trigger build on README.md change
- 'README.md'
workflow_dispatch:
schedule:
# UTC schedule
# M H DOM MONTH DAY
- cron: "0 1 * * SUN"
jobs:
# Ideally these would be de-duplicated with yaml anchors, but that's not supported yet:
# https://github.community/t5/GitHub-Actions/Support-for-YAML-anchors/td-p/30336
build_latest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Publish to Docker Repository (latest)
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: prismaticd/django-nginx:latest
dockerfile: 3.9/Dockerfile
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
build_py310_gcloud:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Publish to Docker Repository (py310-gcloud)
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: prismaticd/django-nginx:3.10-gcloud
dockerfile: 3.10-gcloud/Dockerfile
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
build_py311_gcloud:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Publish to Docker Repository (py311-gcloud)
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: prismaticd/django-nginx:3.11-gcloud
dockerfile: 3.11-gcloud/Dockerfile
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
build_py311_slim:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Publish to Docker Repository (py311-slim)
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: prismaticd/django-nginx:3.11-slim
dockerfile: 3.11-slim/Dockerfile
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
build_py312_slim:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Publish to Docker Repository (py312-gcloud)
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: prismaticd/django-nginx:3.12-gcloud
dockerfile: 3.12-gcloud/Dockerfile
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}