-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #727 from genedna/main
Add docker cloud builder for testing
- Loading branch information
Showing
1 changed file
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: Docker Build Cloud | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
engine: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Log in to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ vars.DOCKER_USER }} | ||
password: ${{ secrets.DOCKER_PAT }} | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
version: "lab:latest" | ||
driver: cloud | ||
endpoint: "${{ vars.DOCKER_USER }}/mono" | ||
platforms: linux/amd64,linux/arm64 | ||
install: true | ||
- name: Build and push | ||
uses: docker/build-push-action@v6 | ||
with: | ||
tags: "${{ vars.DOCKER_USER }}/mono:mono-engine-latest" | ||
file: docker/mono-engine-dockerfile | ||
# For pull requests, export results to the build cache. | ||
# Otherwise, push to a registry. | ||
outputs: ${{ github.event_name == 'pull_request' && 'type=cacheonly' || 'type=registry' }} | ||
postgres: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Log in to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ vars.DOCKER_USER }} | ||
password: ${{ secrets.DOCKER_PAT }} | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
version: "lab:latest" | ||
driver: cloud | ||
endpoint: "${{ vars.DOCKER_USER }}/mono" | ||
platforms: linux/amd64,linux/arm64 | ||
install: true | ||
- name: Build and push | ||
uses: docker/build-push-action@v6 | ||
with: | ||
tags: "${{ vars.DOCKER_USER }}/mono:mono-pg-latest" | ||
file: docker/mono-pg-dockerfile | ||
# For pull requests, export results to the build cache. | ||
# Otherwise, push to a registry. | ||
outputs: ${{ github.event_name == 'pull_request' && 'type=cacheonly' || 'type=registry' }} | ||
ui: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Log in to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ vars.DOCKER_USER }} | ||
password: ${{ secrets.DOCKER_PAT }} | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
version: "lab:latest" | ||
driver: cloud | ||
endpoint: "${{ vars.DOCKER_USER }}/mono" | ||
platforms: linux/amd64,linux/arm64 | ||
install: true | ||
- name: Build and push | ||
uses: docker/build-push-action@v6 | ||
with: | ||
tags: "${{ vars.DOCKER_USER }}/mono:mono-ui-latest" | ||
file: docker/mono-ui-dockerfile | ||
# For pull requests, export results to the build cache. | ||
# Otherwise, push to a registry. | ||
outputs: ${{ github.event_name == 'pull_request' && 'type=cacheonly' || 'type=registry' }} |
ae3d222
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
mega – ./
mega-gitmono.vercel.app
www.gitmega.dev
mega-git-main-gitmono.vercel.app
gitmega.dev