Skip to content

copy airport/cities file #87

copy airport/cities file

copy airport/cities file #87

Workflow file for this run

name: Build and Publish Docker image
on:
push:
branches: ["main"]
tags: ["v*"] # build tagged releases too
jobs:
build:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up QEMU
# building for different platforms
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
# caching and multi-platform builds
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Docker metadata
# automatically create Docker tags based on Git events
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64, linux/arm64
push: true
# use tags generated by metadata-action
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
# enable build caching
cache-from: type=gha
cache-to: type=gha,mode=max