Skip to content

Add in github action to build docker images #1

Add in github action to build docker images

Add in github action to build docker images #1

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / Build Docker image

Invalid workflow file

The workflow is not valid. .github/workflows/build.yaml (Line: 35, Col: 13): A sequence was not expected .github/workflows/build.yaml (Line: 45, Col: 13): A sequence was not expected
- "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 }}"