test buildx config

This commit is contained in:
Colin Griffin
2022-05-20 14:52:31 -04:00
committed by GitHub
parent a030c32b8b
commit 02df3c7449

View File

@@ -41,28 +41,36 @@ jobs:
- name: Copy env - name: Copy env
run: | run: |
cp .env.example .env cp .env.example .env
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
driver-opts: |
network=stack
- name: Start database - name: Start database
run: | run: |
docker compose up -d database docker compose up -d database
# - name: Build and push image - name: Build and push image
# id: docker_build id: docker_build
# uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
# with: with:
# context: ./ context: ./
# file: ./Dockerfile file: ./Dockerfile
# push: false push: false
# # The test image is /docker and is private. final image will be /calendso and public platforms: linux/amd64,linux/arm64
# tags: docker.io/${{ secrets.DOCKER_HUB_USERNAME }}/calendso:canary # The test image is /docker and is private. final image will be /calendso and public
# network: stack tags: docker.io/${{ secrets.DOCKER_HUB_USERNAME }}/calendso:canary
# build-args: | # network: stack
# BASE_URL=http://localhost:3000 build-args: |
# NEXT_PUBLIC_APP_URL=http://localhost:3000 BASE_URL=http://localhost:3000
# DATABASE_URL=${DATABASE_URL} NEXT_PUBLIC_APP_URL=http://localhost:3000
- name: Build with docker compose DATABASE_URL=${DATABASE_URL}
run: |
DOCKER_BUILDKIT=0 docker compose build calcom # - name: Build with docker compose
# run: |
# DOCKER_BUILDKIT=0 docker compose build calcom
- name: Cleanup - name: Cleanup
run: | run: |