lasthourcloud/.github/workflows/development-build.yml

80 lines
2.5 KiB
YAML
Raw Normal View History

2023-06-23 09:35:29 +00:00
name: Development Build (v4)
on:
push:
2023-12-19 14:44:01 +00:00
branches-ignore: ["main"]
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:
- uses: actions/checkout@v3
- name: Login to ghcr.io
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build image and push to registry
uses: docker/build-push-action@v4
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:
runs-on: [self-hosted, arm64]
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- name: Login to ghcr.io
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build image and push to registry
uses: docker/build-push-action@v3
with:
context: .
file: docker/prod-ssu/Dockerfile
platforms: linux/aarch64
push: true
2023-12-19 14:41:53 +00:00
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-aarch64
2023-07-04 10:15:08 +00:00
merge-manifest:
2023-09-14 16:44:55 +00:00
runs-on: ubuntu-latest
2023-07-04 10:15:08 +00:00
permissions:
contents: read
packages: write
needs: [amd64, 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 ghcr.io
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Create & publish manifest
run: |
2023-12-19 14:41:53 +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-07-04 10:26:37 +00:00
- uses: sarisia/actions-status-discord@v1
if: always()
with:
2023-09-04 14:48:36 +00:00
webhook: ${{ secrets.DISCORD_WEBHOOK_DEV_RELEASE_CHANNEL }}