Skip to content

Docker Image CI

Docker Image CI #5

Workflow file for this run

name: Docker Image CI
on:
release:
types: [published]
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker Meta-Data Marktplaats Scraper
id: meta
uses: docker/metadata-action@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
images: |
ghcr.io/${{ github.repository }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
latest
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build mp-scraper container image
uses: docker/build-push-action@v6
with:
push: true
cache-from: |
type=gha
cache-to: |
type=gha,mode=max
platforms: linux/amd64, linux/arm64, windows/amd64
tags: ${{ steps.meta.outputs.tags }}
context: .
file: Dockerfile