Skip to content

fix(docker): Fixed WGet building; updated pkgs #359

fix(docker): Fixed WGet building; updated pkgs

fix(docker): Fixed WGet building; updated pkgs #359

---
# 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@c47758b77c9736f4b2ef4073d4d51994fabfe349
- 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@4f58ea79222b3b9dc2c8bbdd6debcef730109a75
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