chore(ci): update workflows to support arm64 build and push

This commit is contained in:
Jagandeep Brar
2023-05-01 00:56:47 -05:00
parent 89b0906eab
commit cfa78fb6ec
4 changed files with 21 additions and 63 deletions

View File

@@ -86,16 +86,17 @@ jobs:
if (process.env.BUILD_FLAVOR === 'stable') tags.push('latest');
return tags.map((tag) => `ghcr.io/jagandeepbrar/lunasea:${tag}`).join(',');
- name: Build LunaSea
- name: Setup GitHub Package Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Build & Push LunaSea
uses: docker/build-push-action@v4
with:
context: .
outputs: type=docker,dest=${{ github.workspace}}/output/lunasea-web-docker.tar
tags: ${{ steps.tags.outputs.result }}
platforms: linux/amd64,linux/arm64
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: web-docker
path: ${{ github.workspace }}/output
push: true
tags: ${{ steps.tags.outputs.result }}

View File

@@ -15,29 +15,6 @@ on:
required: true
jobs:
docker:
name: Docker
runs-on: ubuntu-latest
steps:
- name: Setup Environment
uses: JagandeepBrar/lunasea/.github/actions/prepare_for_deployment@master
with:
channel: docker
ghcr-actor: ${{ github.actor }}
ghcr-token: ${{ github.token }}
- name: Download Docker Image
uses: actions/download-artifact@v3
with:
name: web-docker
path: ${{ github.workspace }}/output
- name: Load Docker Image
run: docker load --input ${{ github.workspace}}/output/lunasea-web-docker.tar
- name: Deploy to GitHub Container Registry
run: docker image push --all-tags ghcr.io/jagandeepbrar/lunasea
netlify:
name: Netlify
runs-on: ubuntu-latest