Skip to content

chore(docker): Updated Perl & Debian pkgs #358

chore(docker): Updated Perl & Debian pkgs

chore(docker): Updated Perl & Debian pkgs #358

---
# https://docs.docker.com/ci-cd/github-actions/
name: Publish Docker Image
on:
push:
branches: ["master"]
paths: ["Dockerfile"]
workflow_dispatch:
permissions: read-all
jobs:
build:
runs-on: ubuntu-22.04
permissions:
packages: write
steps:
- name: Checkout repo
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- name: Set up QEMU
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db
- name: Login to GitHub Container Registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Build the image
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85
with:
context: .
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: ghcr.io/t145/black-mirror:latest
cache-from: type=registry,ref=ghcr.io/t145/black-mirror:buildcache
cache-to: type=registry,ref=ghcr.io/t145/black-mirror:buildcache,mode=max
# https://github.com/kitabisa/docker-slim-action
# - name: Slim the image
# uses: kitabisa/docker-slim-action@e641d62304259303c8557c27e10965f7348c7eb4
# env:
# DSLIM_HTTP_PROBE: false
# with:
# target: ${{ github.repository }}:latest
# tag: 'slim'
# - name: Push all tags
# run: docker image push "${{ github.repository }}" --all-tags