Skip to content

Build and Push Docker Images #5

Build and Push Docker Images

Build and Push Docker Images #5

Workflow file for this run

name: Build and Push Docker Images
on:
workflow_dispatch:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
env:
BASE_IMAGE_NAME: kjuly/sphinx
FURO_IMAGE_NAME: kjuly/sphinx-furo
FURO_IMAGE_DOCKERFILE: Dockerfile-furo
permissions:
contents: read
packages: write
id-token: write
attestations: write
concurrency:
group: "images"
cancel-in-progress: false
jobs:
build-n-push-image:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build and Push Image to Docker Hub - Sphinx
uses: kjuly/docker-image-publisher@main
with:
image_name: ${{ env.BASE_IMAGE_NAME }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
token: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and Push Image to Github Container Registry - Sphinx
uses: kjuly/docker-image-publisher@main
with:
registry: ghcr.io
image_name: ${{ env.BASE_IMAGE_NAME }}
username: ${{ github.actor }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push Image to Docker Hub - Sphinx+furo
uses: kjuly/docker-image-publisher@main
with:
image_name: ${{ env.FURO_IMAGE_NAME }}
dockerfile: ${{ env.FURO_IMAGE_DOCKERFILE }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
token: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and Push Image to Github Container Registry - Sphinx+furo
uses: kjuly/docker-image-publisher@main
with:
registry: ghcr.io
image_name: ${{ env.FURO_IMAGE_NAME }}
dockerfile: ${{ env.FURO_IMAGE_DOCKERFILE }}
username: ${{ github.actor }}
token: ${{ secrets.GITHUB_TOKEN }}