|
10 | 10 | # deployment: |
11 | 11 | # workflow_dispatch: |
12 | 12 | jobs: |
13 | | - docker-deploy-development-image: |
14 | | - if: github.repository_owner == 'doubtfire-lms' |
15 | | - environment: deployment-secrets |
16 | | - runs-on: ubuntu-latest |
17 | | - steps: |
18 | | - - name: Checkout code |
19 | | - uses: actions/checkout@v4 |
20 | | - - name: Set up Docker Buildx |
21 | | - uses: docker/setup-buildx-action@v3 |
22 | | - - name: Login to DockerHub |
23 | | - uses: docker/login-action@v3 |
24 | | - if: github.event_name != 'pull_request' |
25 | | - with: |
26 | | - username: ${{ secrets.DOCKERHUB_USERNAME }} |
27 | | - password: ${{ secrets.DOCKERHUB_TOKEN }} |
28 | | - - name: Setup meta for development image |
29 | | - id: docker_meta |
30 | | - uses: docker/metadata-action@v5 |
31 | | - with: |
32 | | - images: lmsdoubtfire/doubtfire-web |
33 | | - tags: | |
34 | | - type=semver,pattern={{major}}.{{minor}}.x-dev |
35 | | - - name: Build and push web server |
36 | | - id: docker_build |
37 | | - uses: docker/build-push-action@v5 |
38 | | - with: |
39 | | - context: . |
40 | | - push: ${{ github.event_name != 'pull_request' }} |
41 | | - tags: ${{ steps.docker_meta.outputs.tags }} |
42 | | - labels: ${{ steps.meta.outputs.labels }} |
43 | | - - name: Image digest |
44 | | - run: echo ${{ steps.docker_build.outputs.digest }} |
| 13 | + # docker-deploy-development-image: |
| 14 | + # if: github.repository_owner == 'doubtfire-lms' |
| 15 | + # environment: deployment-secrets |
| 16 | + # runs-on: ubuntu-latest |
| 17 | + # steps: |
| 18 | + # - name: Checkout code |
| 19 | + # uses: actions/checkout@v4 |
| 20 | + # with: |
| 21 | + # submodules: recursive |
| 22 | + # - name: Set up Docker Buildx |
| 23 | + # uses: docker/setup-buildx-action@v3 |
| 24 | + # - name: Login to DockerHub |
| 25 | + # uses: docker/login-action@v3 |
| 26 | + # if: github.event_name != 'pull_request' |
| 27 | + # with: |
| 28 | + # username: ${{ secrets.DOCKERHUB_USERNAME }} |
| 29 | + # password: ${{ secrets.DOCKERHUB_TOKEN }} |
| 30 | + # - name: Setup meta for development image |
| 31 | + # id: docker_meta |
| 32 | + # uses: docker/metadata-action@v5 |
| 33 | + # with: |
| 34 | + # images: lmsdoubtfire/doubtfire-web |
| 35 | + # tags: | |
| 36 | + # type=semver,pattern={{major}}.{{minor}}.x-dev |
| 37 | + # - name: Build and push web server |
| 38 | + # id: docker_build |
| 39 | + # uses: docker/build-push-action@v5 |
| 40 | + # with: |
| 41 | + # context: . |
| 42 | + # push: ${{ github.event_name != 'pull_request' }} |
| 43 | + # tags: ${{ steps.docker_meta.outputs.tags }} |
| 44 | + # labels: ${{ steps.meta.outputs.labels }} |
| 45 | + # - name: Image digest |
| 46 | + # run: echo ${{ steps.docker_build.outputs.digest }} |
45 | 47 | docker-web-server: |
46 | 48 | if: github.repository_owner == 'doubtfire-lms' |
47 | 49 | environment: deployment-secrets |
48 | 50 | runs-on: ubuntu-latest |
49 | 51 | steps: |
50 | 52 | - name: Checkout code |
51 | 53 | uses: actions/checkout@v4 |
| 54 | + with: |
| 55 | + submodules: recursive |
52 | 56 | - name: Set up Docker Buildx |
53 | 57 | uses: docker/setup-buildx-action@v3 |
54 | 58 | - name: Login to DockerHub |
|
0 commit comments