Skip to content

chore(cleanup): remove old baseimage and docker.d/versions.d pi… #30

chore(cleanup): remove old baseimage and docker.d/versions.d pi…

chore(cleanup): remove old baseimage and docker.d/versions.d pi… #30

name: "Build 'metabuilder' image shared across 'baseimage'"
on:
push:
paths:
- "baseimage/**"
- ".github/workflows/baseimage-metabuilder.yaml"
workflow_call:
workflow_dispatch:
jobs:
build-environment:
runs-on: "ubuntu-latest"
steps:
- id: "setup"
run: |
echo "build-date=$(date)" >> $GITHUB_OUTPUT
- id: "checkout"
name: "Checkout repository"
uses: "actions/checkout@v3"
- id: "setup-qemu"
name: "Setup QEMU"
uses: "docker/setup-qemu-action@v2"
with:
platforms: "linux/amd64,linux/arm64"
- id: "setup-buildx"
name: "Setup Buildx"
uses: "docker/setup-buildx-action@v2"
with:
install: true
- id: "login-dockerhub"
name: "Login to DockerHub"
uses: "docker/login-action@v2"
with:
username: "${{ secrets.DOCKERHUB_USERNAME }}"
password: "${{ secrets.DOCKERHUB_TOKEN }}"
- id: "login-ghcr"
name: "Login to GitHub Container Registry"
uses: "docker/login-action@v2"
with:
registry: "ghcr.io"
username: "${{ github.repository_owner }}"
password: "${{ secrets.GITHUB_TOKEN }}"
- id: "build"
name: "Build and push Docker images"
uses: "docker/build-push-action@v3"
with:
push: true
platforms: "linux/amd64,linux/arm64"
context: "baseimage"
build-args: |
BUILD_DATE=${{ steps.setup.outputs.build-date }}
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/baseimage:metabuilder-latest
ghcr.io/${{ github.repository_owner }}/baseimage:metabuilder-latest