|
1 | | -# This workflow for spring boot redis cache project |
2 | | -name: Build and Push to Container Registry |
3 | | -on: |
4 | | - push: |
5 | | - branches: |
6 | | - - main |
7 | | -env: |
8 | | - REGISTRY: ghcr.io |
9 | | - REPO_OWNER: ${{ github.repository_owner }} |
| 1 | +# name: Build and Push to Container Registry |
| 2 | +# on: |
| 3 | +# push: |
| 4 | +# branches: |
| 5 | +# - main |
| 6 | +# env: |
| 7 | +# REGISTRY: ghcr.io |
| 8 | +# REPO_OWNER: ${{ github.repository_owner }} |
10 | 9 |
|
11 | | -jobs: |
12 | | - build-and-push: |
13 | | - runs-on: ubuntu-latest |
14 | | - steps: |
15 | | - - name: Checkout |
16 | | - uses: actions/checkout@v4 |
| 10 | +# jobs: |
| 11 | +# build-and-push: |
| 12 | +# runs-on: ubuntu-latest |
| 13 | +# steps: |
| 14 | +# - name: Checkout |
| 15 | +# uses: actions/checkout@v4 |
17 | 16 |
|
18 | | - - name: Build with Maven |
19 | | - run: mvn clean install |
| 17 | +# - name: Build with Maven |
| 18 | +# run: mvn clean install |
20 | 19 |
|
21 | | - - name: Log in Github Container Registry |
22 | | - uses: docker/login-action@v2 |
23 | | - with: |
24 | | - registry: ${{ env.REGISTRY }} |
25 | | - username: ${{ github.actor }} |
26 | | - password: ${{ secrets.GH_TOKEN }} |
| 20 | +# - name: Log in Github Container Registry |
| 21 | +# uses: docker/login-action@v2 |
| 22 | +# with: |
| 23 | +# registry: ${{ env.REGISTRY }} |
| 24 | +# username: ${{ github.actor }} |
| 25 | +# password: ${{ secrets.GH_TOKEN }} |
27 | 26 |
|
28 | | - - name: Extract image metadata |
29 | | - id: meta |
30 | | - uses: docker/metadata-action@v4 |
31 | | - with: |
32 | | - images: ${{ env.REGISTRY }}/${{ env.REPO_OWNER }}/spring-boot-redis-cache |
| 27 | +# - name: Extract image metadata |
| 28 | +# id: meta |
| 29 | +# uses: docker/metadata-action@v4 |
| 30 | +# with: |
| 31 | +# images: ${{ env.REGISTRY }}/${{ env.REPO_OWNER }}/spring-boot-redis-cache |
33 | 32 |
|
34 | | - - name: Build and push |
35 | | - uses: docker/build-push-action@v4 |
36 | | - with: |
37 | | - context: . |
38 | | - file: Dockerfile |
39 | | - push: true |
40 | | - tags: ${{ steps.meta.outputs.tags }} |
41 | | - labels: ${{ steps.meta.outputs.labels }} |
42 | | - build-args: | |
43 | | - GITHUB_TOKEN=${{ secrets.GH_TOKEN }} |
| 33 | +# - name: Build and push |
| 34 | +# uses: docker/build-push-action@v4 |
| 35 | +# with: |
| 36 | +# context: . |
| 37 | +# file: Dockerfile |
| 38 | +# push: true |
| 39 | +# tags: ${{ steps.meta.outputs.tags }} |
| 40 | +# labels: ${{ steps.meta.outputs.labels }} |
| 41 | +# build-args: | |
| 42 | +# GITHUB_TOKEN=${{ secrets.GH_TOKEN }} |
0 commit comments