This commit is contained in:
Syed Ali Shahbaz
2023-09-29 13:46:44 +04:00
committed by GitHub
parent 04e4c64efe
commit 34c213f56a

View File

@@ -18,10 +18,12 @@ on:
# Allow running workflow manually from the Actions tab # Allow running workflow manually from the Actions tab
# workflow_dispatch: # workflow_dispatch:
workflow_dispatch: workflow_dispatch:
inputs: # Uncomment below to allow specific version workflow run
version: # inputs:
description: 'Version to build' # version:
required: true # description: 'Version to build'
# required: true
# Leaving in example for releases. Initially we simply push to 'latest' # Leaving in example for releases. Initially we simply push to 'latest'
# on: # on:
# release: # release:
@@ -36,14 +38,14 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job # Steps represent a sequence of tasks that will be executed as part of the job
steps: steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it, uncomment below
- name: Checkout code at specified version # - name: Checkout code at specified version
uses: actions/checkout@v2 # uses: actions/checkout@v2
with: # with:
ref: ${{ github.event.inputs.version }} # ref: ${{ github.event.inputs.version }}
# - name: checkout - name: checkout
# uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Git submodule update - name: Git submodule update
run: | run: |
@@ -163,14 +165,13 @@ jobs:
NEXTAUTH_SECRET: 'EI4qqDpcfdvf4A+0aQEEx8JjHxHSy4uWiZw/F32K+pA=' NEXTAUTH_SECRET: 'EI4qqDpcfdvf4A+0aQEEx8JjHxHSy4uWiZw/F32K+pA='
CALENDSO_ENCRYPTION_KEY: '0zfLtY99wjeLnsM7qsa8xsT+Q0oSgnOL' CALENDSO_ENCRYPTION_KEY: '0zfLtY99wjeLnsM7qsa8xsT+Q0oSgnOL'
- name: Push image
run: |
tags="${{ steps.meta.outputs.tags }}"
IFS=',' read -ra ADDR <<< "$tags" # Convert string to array using ',' as delimiter
tag=${ADDR[0]} # Get the first tag
# - name: Push image docker push $tag
# run: |
# tags="${{ steps.meta.outputs.tags }}"
# IFS=',' read -ra ADDR <<< "$tags" # Convert string to array using ',' as delimiter
# tag=${ADDR[0]} # Get the first tag
# docker push $tag
- name: Cleanup - name: Cleanup