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 654fc8e
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build Docker Images

on:
push:
branches:
- "package-services"

jobs:
docker:
runs-on: ubuntu-latest
strategy:
matrix:
app:
- dir: flight-data
name: flights
- dir: flight-data
name: routes
- dir: sales
name: bookings
- dir: sales
name: customers
- dir: .
name: experience
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 }}/${{ matrix.app.name }}"
push: true
platforms: linux/amd64,linux/arm64
tags: ghcr.io/kong/kongair-${{ matrix.app.name }}:latest

0 comments on commit 654fc8e

Please sign in to comment.