mirror of
https://github.com/jagandeepbrar/lunasea.git
synced 2026-08-31 20:52:32 +00:00
chore(ci): update workflows to support arm64 build and push
This commit is contained in:
19
.github/workflows/build_web.yml
vendored
19
.github/workflows/build_web.yml
vendored
@@ -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 }}
|
||||
|
||||
23
.github/workflows/publish_web.yml
vendored
23
.github/workflows/publish_web.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user