Add in github action to build docker images #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}" | ||
Check failure on line 35 in .github/workflows/build.yaml GitHub Actions / Build Docker imageInvalid workflow file
|
||
- "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 }}" |