|
1 | 1 | name: Dockerize Profiles |
2 | 2 |
|
3 | 3 | on: |
4 | | - push: |
5 | | - branches: [feat-profiles] |
6 | | - pull_request: |
7 | | - types: [opened, synchronize, reopened] |
8 | | - branches: [feat-profiles] |
9 | | - workflow_dispatch: |
| 4 | + push: |
| 5 | + branches: [feat-profiles] |
| 6 | + pull_request: |
| 7 | + types: [opened, synchronize, reopened] |
| 8 | + branches: [feat-profiles] |
| 9 | + workflow_dispatch: |
10 | 10 |
|
11 | 11 | jobs: |
12 | | - dockerize-profiles: |
13 | | - runs-on: ubuntu-latest |
14 | | - |
15 | | - steps: |
16 | | - - name: Checkout the repo |
17 | | - uses: actions/checkout@v2 |
18 | | - - name: Set up QEMU |
19 | | - uses: docker/setup-qemu-action@v2 |
20 | | - - name: Set up Docker Buildx |
21 | | - uses: docker/setup-buildx-action@v2 |
22 | | - - name: Log in to Docker Hub |
23 | | - uses: docker/login-action@v3 |
24 | | - with: |
25 | | - username: ${{ vars.DOCKERHUB_USERNAME }} |
26 | | - password: ${{ secrets.DOCKERHUB_TOKEN }} |
| 12 | + dockerize-profiles: |
| 13 | + runs-on: ubuntu-latest |
27 | 14 |
|
28 | | - - name: Extract metadata (tags, labels) for Docker |
29 | | - id: meta |
30 | | - uses: docker/metadata-action@v5 |
31 | | - with: |
32 | | - images: appwrite/console-profiles |
33 | | - tags: | |
34 | | - type=ref,event=branch,prefix=branch- |
35 | | - type=ref,event=pr |
36 | | - type=sha,prefix=sha- |
37 | | - type=raw,value=gh-${{ github.run_id}} |
38 | | - flavor: | |
39 | | - latest=false |
| 15 | + steps: |
| 16 | + - name: Checkout the repo |
| 17 | + uses: actions/checkout@v2 |
| 18 | + - name: Set up QEMU |
| 19 | + uses: docker/setup-qemu-action@v2 |
| 20 | + - name: Set up Docker Buildx |
| 21 | + uses: docker/setup-buildx-action@v2 |
| 22 | + - name: Log in to Docker Hub |
| 23 | + uses: docker/login-action@v3 |
| 24 | + with: |
| 25 | + username: ${{ vars.DOCKERHUB_USERNAME }} |
| 26 | + password: ${{ secrets.DOCKERHUB_TOKEN }} |
40 | 27 |
|
41 | | - - name: Build and push Docker image |
42 | | - id: push |
43 | | - uses: docker/build-push-action@v6 |
44 | | - with: |
45 | | - context: . |
46 | | - push: true |
47 | | - platforms: linux/amd64,linux/arm64 |
48 | | - tags: ${{ steps.meta.outputs.tags }} |
49 | | - labels: ${{ steps.meta.outputs.labels }} |
| 28 | + - name: Extract metadata (tags, labels) for Docker |
| 29 | + id: meta |
| 30 | + uses: docker/metadata-action@v5 |
| 31 | + with: |
| 32 | + images: appwrite/console-profiles |
| 33 | + tags: | |
| 34 | + type=ref,event=branch,prefix=branch- |
| 35 | + type=ref,event=pr |
| 36 | + type=sha,prefix=sha- |
| 37 | + type=raw,value=gh-${{ github.run_id}} |
| 38 | + flavor: | |
| 39 | + latest=false |
| 40 | +
|
| 41 | + - name: Build and push Docker image |
| 42 | + id: push |
| 43 | + uses: docker/build-push-action@v6 |
| 44 | + with: |
| 45 | + context: . |
| 46 | + push: true |
| 47 | + platforms: linux/amd64,linux/arm64 |
| 48 | + tags: ${{ steps.meta.outputs.tags }} |
| 49 | + labels: ${{ steps.meta.outputs.labels }} |
0 commit comments