Skip to content

🐳 Docker

🐳 Docker #1136

Workflow file for this run

name: 🐳 Docker
on:
schedule:
- cron: "0 */4 * * *"
jobs:
build-docker:
runs-on: ubuntu-latest
env:
DOCKER_BUILDKIT: 1
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set Env
run: |
echo "GIT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
echo "GIT_TIMESTAMP=$(git log -1 --pretty=format:'%cI')" >> $GITHUB_ENV
# https://github.com/docker/setup-qemu-action
- name: Setup QEMU
uses: docker/setup-qemu-action@v3
# https://github.com/docker/setup-buildx-action
- name: Setup Buildx
uses: docker/setup-buildx-action@v3
with:
buildkitd-flags: "--debug"
- name: Docker Build
uses: docker/build-push-action@v5
with:
cache-from: type=gha
cache-to: type=gha,mode=max
file: docker/Dockerfile
context: .
platforms: linux/amd64
build-args: |
git_sha=${{ env.GIT_SHA }}
git_timestamp=${{ env.GIT_TIMESTAMP }}
push: false
tags: |
${{ github.repository_owner }}/homestar:latest