2022-11-18 10:17:04 +00:00
|
|
|
name: fluent-bit-release
|
2022-11-18 10:07:52 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- "others/fluentbit"
|
|
|
|
- ".github/workflows/fluent-bit-release.yml"
|
|
|
|
branches:
|
|
|
|
- next
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
arm64:
|
|
|
|
runs-on: [self-hosted, arm64]
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v1
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
- name: Login to DockerHub
|
|
|
|
uses: docker/login-action@v1
|
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- name: Build and push
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
context: others/fluentbit/
|
|
|
|
platforms: linux/arm64
|
|
|
|
push: true
|
|
|
|
tags: coollabsio/coolify-fluent-bit-test:1.0.0-arm64
|
|
|
|
amd64:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
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 DockerHub
|
|
|
|
uses: docker/login-action@v2
|
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- name: Build and push
|
|
|
|
uses: docker/build-push-action@v3
|
|
|
|
with:
|
2022-11-18 10:17:04 +00:00
|
|
|
context: others/fluentbit/
|
2022-11-18 10:07:52 +00:00
|
|
|
platforms: linux/amd64
|
|
|
|
push: true
|
|
|
|
tags: coollabsio/coolify-fluent-bit-test:1.0.0-amd64
|
|
|
|
aarch64:
|
|
|
|
runs-on: [self-hosted, arm64]
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v1
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
- name: Login to DockerHub
|
|
|
|
uses: docker/login-action@v1
|
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- name: Build and push
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
2022-11-18 10:17:04 +00:00
|
|
|
context: others/fluentbit/
|
2022-11-18 10:07:52 +00:00
|
|
|
platforms: linux/aarch64
|
|
|
|
push: true
|
|
|
|
tags: coollabsio/coolify-fluent-bit-test:1.0.0-aarch64
|
|
|
|
merge-manifest:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: [amd64, arm64, aarch64]
|
|
|
|
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 DockerHub
|
|
|
|
uses: docker/login-action@v2
|
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- name: Create & publish manifest
|
|
|
|
run: |
|
|
|
|
docker manifest create coollabsio/coolify-fluent-bit-test:1.0.0 --amend coollabsio/coolify-fluent-bit-test:1.0.0-amd64 --amend coollabsio/coolify-fluent-bit-test:1.0.0-arm64 --amend coollabsio/coolify-fluent-bit-test:1.0.0-aarch64
|
|
|
|
docker manifest push coollabsio/coolify-fluent-bit-test:1.0.0
|