Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: wip #30418

Closed
wants to merge 10 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions .github/actions/build-docker-test/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: 'Meteor Docker'

inputs:
CR_USER:
required: true
CR_PAT:
required: true
node-version:
required: true
description: 'Node version'
type: string
type:
required: false
description: 'Type of image (official or alpine)'
type: string

runs:
using: composite

steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ inputs.CR_USER }}
password: ${{ inputs.CR_PAT }}

- name: Restore build
uses: actions/download-artifact@v3
with:
name: build
path: /tmp/build

- name: Unpack build
shell: bash
run: |
cd /tmp/build
tar xzf Rocket.Chat.tar.gz
rm Rocket.Chat.tar.gz

- name: setup qemu
uses: docker/setup-qemu-action@v2

- name: setup buildx
uses: docker/setup-buildx-action@v2
with:
driver: docker-container

- name: Build and push docker images
shell: bash
run: |
args=(rocketchat)

if [[ '${{ inputs.type }}' = 'alpine' ]]; then
args+=($SERVICES_PUBLISH)
fi;

docker buildx bake -f docker-compose-ci.yml "${args[@]}" --push

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
Loading
Loading