2023-06-23 09:35:29 +00:00
|
|
|
name: Development Build (v4)
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-12-19 14:44:41 +00:00
|
|
|
branches-ignore: ["main", "v3"]
|
2023-09-04 14:48:36 +00:00
|
|
|
paths-ignore:
|
|
|
|
- .github/workflows/coolify-helper.yml
|
|
|
|
- docker/coolify-helper/Dockerfile
|
2023-06-23 09:35:29 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
REGISTRY: ghcr.io
|
|
|
|
IMAGE_NAME: "coollabsio/coolify"
|
|
|
|
|
|
|
|
jobs:
|
2023-07-04 10:15:08 +00:00
|
|
|
amd64:
|
2023-11-03 17:01:17 +00:00
|
|
|
runs-on: ubuntu-latest
|
2023-06-23 09:35:29 +00:00
|
|
|
steps:
|
2024-01-26 10:20:27 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-06-23 09:35:29 +00:00
|
|
|
- name: Login to ghcr.io
|
2024-01-26 10:20:27 +00:00
|
|
|
uses: docker/login-action@v3
|
2023-06-23 09:35:29 +00:00
|
|
|
with:
|
|
|
|
registry: ${{ env.REGISTRY }}
|
|
|
|
username: ${{ github.actor }}
|
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Build image and push to registry
|
2024-01-26 10:20:27 +00:00
|
|
|
uses: docker/build-push-action@v5
|
2023-06-23 09:35:29 +00:00
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
file: docker/prod-ssu/Dockerfile
|
|
|
|
platforms: linux/amd64
|
|
|
|
push: true
|
2023-12-19 14:41:53 +00:00
|
|
|
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}
|
2023-07-04 10:15:08 +00:00
|
|
|
aarch64:
|
2023-12-19 14:44:41 +00:00
|
|
|
runs-on: [self-hosted, arm64]
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
packages: write
|
|
|
|
steps:
|
2024-01-26 10:20:27 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-12-19 14:44:41 +00:00
|
|
|
- name: Login to ghcr.io
|
2024-01-26 10:20:27 +00:00
|
|
|
uses: docker/login-action@v3
|
2023-12-19 14:44:41 +00:00
|
|
|
with:
|
|
|
|
registry: ${{ env.REGISTRY }}
|
|
|
|
username: ${{ github.actor }}
|
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Build image and push to registry
|
2024-01-26 10:20:27 +00:00
|
|
|
uses: docker/build-push-action@v5
|
2023-12-19 14:44:41 +00:00
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
file: docker/prod-ssu/Dockerfile
|
|
|
|
platforms: linux/aarch64
|
|
|
|
push: true
|
|
|
|
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-aarch64
|
2023-07-04 10:15:08 +00:00
|
|
|
merge-manifest:
|
2023-12-19 14:44:41 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
packages: write
|
|
|
|
needs: [amd64, aarch64]
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2024-01-26 10:20:27 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-12-19 14:44:41 +00:00
|
|
|
- name: Set up QEMU
|
2024-01-26 10:20:27 +00:00
|
|
|
uses: docker/setup-qemu-action@v3
|
2023-12-19 14:44:41 +00:00
|
|
|
- name: Set up Docker Buildx
|
2024-01-26 10:20:27 +00:00
|
|
|
uses: docker/setup-buildx-action@v3
|
2023-12-19 14:44:41 +00:00
|
|
|
- name: Login to ghcr.io
|
2024-01-26 10:20:27 +00:00
|
|
|
uses: docker/login-action@v3
|
2023-12-19 14:44:41 +00:00
|
|
|
with:
|
|
|
|
registry: ${{ env.REGISTRY }}
|
|
|
|
username: ${{ github.actor }}
|
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Create & publish manifest
|
|
|
|
run: |
|
2024-01-26 09:56:22 +00:00
|
|
|
docker buildx imagetools create --append ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-aarch64 --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}
|
2023-12-19 14:44:41 +00:00
|
|
|
- uses: sarisia/actions-status-discord@v1
|
|
|
|
if: always()
|
|
|
|
with:
|
|
|
|
webhook: ${{ secrets.DISCORD_WEBHOOK_DEV_RELEASE_CHANNEL }}
|