|
1 | | -name: publish |
| 1 | +name: Publish Image to ghcr.io |
2 | 2 | on: |
3 | 3 | workflow_dispatch: |
4 | 4 | inputs: |
|
8 | 8 | type: boolean |
9 | 9 | default: false |
10 | 10 | jobs: |
11 | | - publish-mwcs-deploy-image: |
12 | | - runs-on: ubuntu-latest |
13 | | - steps: |
14 | | - - uses: actions/checkout@v2 |
15 | | - - name: Login to GitHub Container Registry |
16 | | - uses: docker/login-action@v1 |
17 | | - with: |
18 | | - registry: ghcr.io |
19 | | - username: ${{ github.actor }} |
20 | | - password: ${{ secrets.GITHUB_TOKEN }} |
21 | | - - name: Only Build MWCS Deploy |
22 | | - if: ${{input.build-only == true}} |
23 | | - run: | |
24 | | - docker build . --tag ghcr.io/godaddy-wordpress/mwcs-deploy:latest |
25 | | - - name: Build the MWCS Deploy Docker image and Publish |
26 | | - if: ${{input.build-only == false}} |
27 | | - run: | |
28 | | - docker build . --tag ghcr.io/godaddy-wordpress/mwcs-deploy:latest |
29 | | - docker push ghcr.io/godaddy-wordpress/mwcs-deploy:latest |
| 11 | + Publish_MWCS_Deploy_Image: |
| 12 | + runs-on: ubuntu-latest |
| 13 | + steps: |
| 14 | + - uses: actions/checkout@v2 |
| 15 | + - name: Login to GitHub Container Registry |
| 16 | + uses: docker/login-action@v1 |
| 17 | + with: |
| 18 | + registry: ghcr.io |
| 19 | + username: ${{ github.actor }} |
| 20 | + password: ${{ secrets.GITHUB_TOKEN }} |
| 21 | + - name: Only Build MWCS Deploy |
| 22 | + if: ${{input.build-only == true}} |
| 23 | + run: | |
| 24 | + docker build . --tag ghcr.io/godaddy-wordpress/mwcs-deploy:latest |
| 25 | + - name: Build the MWCS Deploy Docker image and Publish |
| 26 | + if: ${{input.build-only == false}} |
| 27 | + run: | |
| 28 | + docker build . --tag ghcr.io/godaddy-wordpress/mwcs-deploy:latest |
| 29 | + docker push ghcr.io/godaddy-wordpress/mwcs-deploy:latest |
0 commit comments