Skip to content

Merge pull request #44 from cmahnke/dependabot/github_actions/docker/… #55

Merge pull request #44 from cmahnke/dependabot/github_actions/docker/…

Merge pull request #44 from cmahnke/dependabot/github_actions/docker/… #55

Workflow file for this run

name: GeoIP Tool GitHub Packages
permissions:
packages: write
on:
push:
branches:
- main
jobs:
build_geoip-tool:
name: Push to GitHub Packages
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/[email protected]
with:
submodules: true
fetch-depth: 0
- name: Log in to the Container registry
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
logout: false
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/[email protected]
with:
driver-opts: env.BUILDKIT_STEP_LOG_MAX_SIZE=10485760
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81
with:
images: |
ghcr.io/${{ github.repository }}
tags: |
type=raw,value=latest,enable={{is_default_branch}}
- name: Push to GitHub Packages
uses: docker/[email protected]
with:
context: .
file: ./Dockerfile
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}