Browse Source

fix(CI/CD): build image on branch

pull/2377/head
Harry 10 months ago
parent
commit
0280f89698
  1. 6
      .github/workflows/ga-image-build-branch.yml

6
.github/workflows/ga-image-build-branch.yml

@ -28,19 +28,19 @@ jobs:
password: ${{ secrets.SECRET_DOCKER_01EDU_ORG }}
- name: 🏗 Build the 💻 Sh Docker image
if: always()
if: github.event.pull_request.body.contains('[x] Build Sh Docker Image')
run: |
docker build sh/tests/ --file sh/tests/Dockerfile --tag ghcr.io/01-edu/test-sh:PR${{ github.event.pull_request.number }}
docker push ghcr.io/01-edu/test-sh:PR${{ github.event.pull_request.number }}
- name: 🏗 Build the 🚀 JS Docker image
if: always()
if: github.event.pull_request.body.contains('[x] Build JS Docker Image')
run: |
docker build js/tests/ --file js/tests/Dockerfile --tag ghcr.io/01-edu/test-js:PR${{ github.event.pull_request.number }}
docker push ghcr.io/01-edu/test-js:PR${{ github.event.pull_request.number }}
- name: 🏗 Build the 🧩 DOM Docker image
if: always()
if: github.event.pull_request.body.contains('[x] Build DOM Docker Image')
run: |
docker build . --file dom/Dockerfile --tag ghcr.io/01-edu/test-dom:PR${{ github.event.pull_request.number }}
docker push ghcr.io/01-edu/test-dom:PR${{ github.event.pull_request.number }}

Loading…
Cancel
Save