Skip to content

Commit

Permalink
rename matrix to type as it's not really platform
Browse files Browse the repository at this point in the history
  • Loading branch information
debdutdeb committed Sep 18, 2023
1 parent 6a707f8 commit 336e4ef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/actions/build-docker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ inputs:
required: true
description: 'Node version'
type: string
platform:
type:
required: false
description: 'Platform'
description: 'Type of image (official or alpine)'
type: string

runs:
Expand Down Expand Up @@ -55,7 +55,7 @@ runs:
run: |
args=(rocketchat)
if [[ '${{ inputs.platform }}' = 'alpine' ]]; then
if [[ '${{ inputs.type }}' = 'alpine' ]]; then
args+=($SERVICES_PUBLISH)
fi;
Expand All @@ -66,7 +66,7 @@ runs:
run: |
args=(rocketchat)
if [[ '${{ inputs.platform }}' = 'alpine' ]]; then
if [[ '${{ inputs.type }}' = 'alpine' ]]; then
args+=($SERVICES_PUBLISH)
fi;
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: ['official', 'alpine']
type: ['official', 'alpine']

steps:
- uses: actions/checkout@v3
Expand All @@ -194,7 +194,7 @@ jobs:
CR_USER: ${{ secrets.CR_USER }}
CR_PAT: ${{ secrets.CR_PAT }}
node-version: ${{ needs.release-versions.outputs.node-version }}
platform: ${{ matrix.platform }}
type: ${{ matrix.type }}

build-gh-docker:
name: 🚢 Build Docker Images for Production
Expand All @@ -211,7 +211,7 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: ['official', 'alpine']
type: ['official', 'alpine']

steps:
- uses: actions/checkout@v3
Expand All @@ -221,10 +221,10 @@ jobs:
CR_USER: ${{ secrets.CR_USER }}
CR_PAT: ${{ secrets.CR_PAT }}
node-version: ${{ needs.release-versions.outputs.node-version }}
platform: ${{ matrix.platform }}
type: ${{ matrix.type }}

- name: Rename official Docker tag to GitHub Container Registry
if: matrix.platform == 'official'
if: matrix.type == 'official'
run: |
IMAGE_NAME_BASE="ghcr.io/${LOWERCASE_REPOSITORY}/rocket.chat:${DOCKER_TAG}"
Expand Down

0 comments on commit 336e4ef

Please sign in to comment.