Update runs-on platform to self-hosted arm64 in production build work… #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Production Build | |
on: | |
push: | |
branches: | |
- main | |
env: | |
GITHUB_REGISTRY: ghcr.io | |
IMAGE_NAME: coollabsio/documentation-coolify | |
jobs: | |
build: | |
runs-on: [self-hosted, arm64] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Login to ${{ env.GITHUB_REGISTRY }} | |
uses: docker/login-action@v3 | |
with: | |
registry: ${{ env.GITHUB_REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and Push Image | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
file: Dockerfile | |
platforms: linux/arm64 | |
push: true | |
tags: | | |
${{ env.GITHUB_REGISTRY }}/${{ env.IMAGE_NAME }}:latest |