Skip to content

Commit

Permalink
try bake
Browse files Browse the repository at this point in the history
  • Loading branch information
debdutdeb committed Sep 18, 2023
1 parent a245303 commit 38226f5
Show file tree
Hide file tree
Showing 2 changed files with 485 additions and 499 deletions.
28 changes: 7 additions & 21 deletions .github/actions/build-docker-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,15 @@ runs:
tar xzf Rocket.Chat.tar.gz
rm Rocket.Chat.tar.gz
- uses: dtinth/setup-github-actions-caching-for-turbo@v1
- name: setup qemu
uses: docker/setup-qemu-action@v2

- name: Setup NodeJS
uses: ./.github/actions/setup-node
- name: setup buildx
uses: docker/setup-buildx-action@v2
with:
node-version: ${{ inputs.node-version }}
cache-modules: true
install: true
driver: docker-container

- run: yarn build
shell: bash

- name: Build Docker images
- name: Build and push docker images
shell: bash
run: |
args=(rocketchat)
Expand All @@ -59,15 +55,5 @@ runs:
args+=($SERVICES_PUBLISH)
fi;
docker compose -f docker-compose-ci.yml build "${args[@]}"
- name: Publish Docker images to GitHub Container Registry
shell: bash
run: |
args=(rocketchat)
if [[ '${{ inputs.type }}' = 'alpine' ]]; then
args+=($SERVICES_PUBLISH)
fi;
docker buildx bake -f docker-compose-ci.yml "${args[@]}" --push
docker compose -f docker-compose-ci.yml push "${args[@]}"
Loading

0 comments on commit 38226f5

Please sign in to comment.