chore(ci): tag Docker images with build title and build channel

This commit is contained in:
Jagandeep Brar
2022-04-19 01:41:57 -04:00
parent b3a75aa5e8
commit 676010e3ac
3 changed files with 11 additions and 11 deletions

View File

@@ -3,7 +3,7 @@ name: 'Build Web'
on:
workflow_call:
inputs:
build-number:
build-title:
required: true
type: string
flavor:
@@ -74,8 +74,8 @@ jobs:
context: .
outputs: type=docker,dest=${{ github.workspace}}/output/lunasea-web-docker.tar
tags: |
ghcr.io/jagandeepbrar/lunasea:${{ inputs.build-title }}
ghcr.io/jagandeepbrar/lunasea:${{ inputs.flavor }}
ghcr.io/jagandeepbrar/lunasea:${{ github.sha }}
- name: Upload Artifact
uses: actions/upload-artifact@v3

View File

@@ -60,59 +60,59 @@ jobs:
- name: Download Android App Package
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: android-app-package
path: ${{ github.workspace }}/output
if-no-files-found: warn
- name: Download iOS App Package
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: ios-appstore-package
path: ${{ github.workspace }}/output
if-no-files-found: warn
- name: Download Linux Snap
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: linux-snapcraft
path: ${{ github.workspace }}/output
if-no-files-found: warn
- name: Download macOS App Package
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: macos-app-package
path: ${{ github.workspace }}/output
if-no-files-found: warn
- name: Download macOS Disk Image
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: macos-disk-image
path: ${{ github.workspace }}/output
if-no-files-found: warn
- name: Download Windows App Package
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: windows-app-package
path: ${{ github.workspace }}/output
if-no-files-found: warn
- name: Download Web Archive
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: web-archive
path: ${{ github.workspace }}/output
if-no-files-found: warn
- name: Download Windows MSIX Installer
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: windows-msix-installer
path: ${{ github.workspace }}/output
if-no-files-found: warn
- name: Upload to S3 Bucket (Build Title)
uses: jakejarvis/s3-sync-action@v0.5.1

View File

@@ -98,7 +98,7 @@ jobs:
if: ${{ needs.prepare.outputs.enable-web == 'true' }}
uses: JagandeepBrar/LunaSea/.github/workflows/build_web.yml@master
with:
build-number: ${{ needs.prepare.outputs.build-number }}
build-title: ${{ needs.prepare.outputs.build-title }}
flavor: ${{ github.event.inputs.flavor || 'edge' }}
secrets:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}