Skip to content

Update monica:4.1.2-apache Docker digest to 2a32608 #58

Update monica:4.1.2-apache Docker digest to 2a32608

Update monica:4.1.2-apache Docker digest to 2a32608 #58

Workflow file for this run

name: Build and push
on:
push:
branches:
- main
paths:
- Dockerfile
- supervisord.conf
workflow_dispatch:
inputs:
VERSION:
type: string
required: true
default: "v4.1.2"
env:
VERSION: "v4.1.2"
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
-
name: Docker meta
id: meta
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5
with:
# list of Docker images to use as base name for tags
images: |
miladiir/monica
ghcr.io/miladiir/monica
# generate Docker tags based on the following events/attributes
tags: |
type=semver,pattern={{version}},value=${{ inputs.VERSION || env.VERSION}}
type=semver,pattern={{major}}.{{minor}},value=${{ inputs.VERSION || env.VERSION }}
type=semver,pattern={{major}},value=${{ inputs.VERSION || env.VERSION}}
-
name: Set up QEMU
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3
-
name: Login to DockerHub
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Login to GHCR
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GH_PACKAGES_TOKEN }}
-
name: Build and push
id: docker_build
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6
with:
push: true
platforms: linux/amd64,linux/arm64/v8
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
-
name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}