lasthourcloud/.github/workflows/coolify-helper-next.yml

85 lines
2.5 KiB
YAML
Raw Permalink Normal View History

2023-09-05 06:49:33 +00:00
name: Coolify Helper Image Development (v4)
on:
push:
branches: [ "next" ]
paths:
2023-09-28 19:52:50 +00:00
- .github/workflows/coolify-helper-next.yml
2023-09-05 06:49:33 +00:00
- docker/coolify-helper/Dockerfile
env:
REGISTRY: ghcr.io
IMAGE_NAME: "coollabsio/coolify-helper"
jobs:
amd64:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
2024-03-27 10:59:01 +00:00
- uses: actions/checkout@v4
2023-09-05 06:49:33 +00:00
- name: Login to ghcr.io
2024-03-27 10:59:01 +00:00
uses: docker/login-action@v3
2023-09-05 06:49:33 +00:00
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build image and push to registry
2024-03-27 10:59:01 +00:00
uses: docker/build-push-action@v5
2023-09-05 06:49:33 +00:00
with:
no-cache: true
context: .
file: docker/coolify-helper/Dockerfile
platforms: linux/amd64
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:next
aarch64:
runs-on: [ self-hosted, arm64 ]
permissions:
contents: read
packages: write
steps:
2024-03-27 10:59:01 +00:00
- uses: actions/checkout@v4
2023-09-05 06:49:33 +00:00
- name: Login to ghcr.io
2024-03-27 10:59:01 +00:00
uses: docker/login-action@v3
2023-09-05 06:49:33 +00:00
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build image and push to registry
2024-03-27 10:59:01 +00:00
uses: docker/build-push-action@v5
2023-09-05 06:49:33 +00:00
with:
no-cache: true
context: .
file: docker/coolify-helper/Dockerfile
platforms: linux/aarch64
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:next-aarch64
merge-manifest:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
needs: [ amd64, aarch64 ]
steps:
- name: Checkout
2024-03-27 10:59:01 +00:00
uses: actions/checkout@v4
2023-09-05 06:49:33 +00:00
- name: Set up QEMU
2024-03-27 10:59:01 +00:00
uses: docker/setup-qemu-action@v3
2023-09-05 06:49:33 +00:00
- name: Set up Docker Buildx
2024-03-27 10:59:01 +00:00
uses: docker/setup-buildx-action@v3
2023-09-05 06:49:33 +00:00
- name: Login to ghcr.io
2024-03-27 10:59:01 +00:00
uses: docker/login-action@v3
2023-09-05 06:49:33 +00:00
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Create & publish manifest
run: |
docker buildx imagetools create --append ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:next-aarch64 --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:next
- uses: sarisia/actions-status-discord@v1
if: always()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK_DEV_RELEASE_CHANNEL }}