Skip to content

Add GitHub Action to publish images #2

Add GitHub Action to publish images

Add GitHub Action to publish images #2

Workflow file for this run

name: Build Docker Images
on:
push:
branches:
- "package-services"
jobs:
docker:
runs-on: ubuntu-latest
strategy:
matrix:
app:
- name: flights
dir: flight-data/flights
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: ${{ matrix.app.dir }}
push: true
platforms: linux/amd64,linux/arm64
tags: ghcr.io/kong/kongair-${{ matrix.app.name }}:latest