Skip to content

GeoIP Tool GitHub Packages #87

GeoIP Tool GitHub Packages

GeoIP Tool GitHub Packages #87

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@9780b0c442fbb1117ed29e0efdff1e18412f7567
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@369eb591f429131d6889c46b94e711f089e6ca96
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 }}