Skip to content

Docker Image

Docker Image #10

Workflow file for this run

name: Docker Image
on:
push:
branches: [main]
schedule:
# Runs "every Monday" (see https://crontab.guru)
- cron: '0 0 * * MON'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Log in to GitHub Docker Registry
id: login-ghcr
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Docker metadata
id: metadata
uses: docker/[email protected]
with:
images: ghcr.io/lbrlabs/docker-derper
tags: |
type=raw,value=latest,enable=true
type=raw,value={{sha}}
type=semver,pattern={{version}}
type=semver,pattern={{raw}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Build and push image
uses: docker/build-push-action@v5
with:
push: true
builder: ${{ steps.buildx.outputs.name }}
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
platforms: linux/amd64,linux/arm64
context: .