Skip to content

Commit

Permalink
update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
freeziyou committed Feb 19, 2024
1 parent 846cd01 commit 6dfd896
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 34 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@ on:
branches: [ "main" ]
paths:
- '**'
- 'website/**'
workflow_dispatch:

jobs:
build-main-app:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && !contains(github.event.head_commit.modified, 'website')) }}
steps:
- name: Check out the repo
uses: actions/checkout@v2
Expand All @@ -29,34 +27,3 @@ jobs:
file: deploy/Dockerfile
push: true
tags: connectai/gitmaya:latest

build-website:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.modified, 'website') }}
steps:
- name: Check out the repo
uses: actions/checkout@v2
with:
submodules: 'true'

- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_ACCOUNT }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Build and push website Docker image
uses: docker/build-push-action@v2
with:
context: .
file: deploy/Dockerfile.proxy
push: true
tags: connectai/gitmaya-proxy:latest

- name: Build and push website Docker image-SaaS
uses: docker/build-push-action@v2
with:
context: .
file: deploy/Dockerfile.proxy.saas
push: true
tags: connectai/gitmaya-proxy:saas
2 changes: 1 addition & 1 deletion website

0 comments on commit 6dfd896

Please sign in to comment.