Skip to content

Commit

Permalink
Add in github action to build docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
pflooky committed Aug 16, 2024
1 parent a7a1091 commit 754f91d
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build Docker image

on:
push:
branches:
- "*"

env:
VERSION: "v1.17.0-debian-1.0"
PLUGIN_ELASTICSEARCH_VERSION: "5.4.3"
PLUGIN_GCS_VERSION: "0.13.1"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Build and push - elasticsearch
uses: docker/build-push-action@v6
with:
dockerfile: "./Dockerfile.elasticsearch"
platforms: linux/amd64,linux/arm64
push: true
tags: datacatering/fluentd-elasticsearch:${{ env.VERSION }}
build-args:
- "FLUENTD_VERSION=${{ env.VERSION }}"
- "PLUGIN_ELASTICSEARCH_VERSION=${{ env.PLUGIN_ELASTICSEARCH_VERSION }}"
- name: Build and push - gcs
uses: docker/build-push-action@v6
with:
dockerfile: "./Dockerfile.gcs"
platforms: linux/amd64,linux/arm64
push: true
tags: datacatering/fluentd-gcs:${{ env.VERSION }}
build-args:
- "FLUENTD_VERSION=${{ env.VERSION }}"
- "PLUGIN_GCS_VERSION=${{ env.PLUGIN_GCS_VERSION }}"

0 comments on commit 754f91d

Please sign in to comment.