Skip to content

Commit

Permalink
Add GitHub Action to publish images
Browse files Browse the repository at this point in the history
  • Loading branch information
mheap committed Aug 23, 2023
1 parent f5312c6 commit 7f65e33
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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

0 comments on commit 7f65e33

Please sign in to comment.