Openstatus
www.openstatus.dev
1name: Publish Checker
2on:
3 push:
4 branches:
5 - main
6 paths:
7 - "apps/checker/**"
8env:
9 REGISTRY: ghcr.io
10 IMAGE_NAME: checker
11
12jobs:
13 build-checker:
14 runs-on: ubuntu-latest
15 # Permissions to use OIDC token authentication
16 permissions:
17 contents: read
18 id-token: write
19 # Allows pushing to the GitHub Container Registry
20 packages: write
21 steps:
22 - uses: actions/checkout@v3
23 - uses: depot/setup-action@v1
24 - name: Log in to the Container registry
25 uses: docker/login-action@v3
26 with:
27 registry: ${{ env.REGISTRY }}
28 username: ${{ github.repository_owner }}
29 password: ${{ secrets.GITHUB_TOKEN }}
30 - name: Build and push
31 uses: depot/build-push-action@v1
32 with:
33 project: 9cknw183m8
34 context: apps/checker
35 tags: ghcr.io/openstatushq/checker:latest
36 platforms: linux/amd64,linux/arm64
37 push: true
38 build-private-location:
39 runs-on: ubuntu-latest
40 # Permissions to use OIDC token authentication
41 permissions:
42 contents: read
43 id-token: write
44 # Allows pushing to the GitHub Container Registry
45 packages: write
46 steps:
47 - uses: actions/checkout@v3
48 - uses: depot/setup-action@v1
49 - name: Log in to the Container registry
50 uses: docker/login-action@v3
51 with:
52 registry: ${{ env.REGISTRY }}
53 username: ${{ github.repository_owner }}
54 password: ${{ secrets.GITHUB_TOKEN }}
55 - name: Build and push
56 uses: depot/build-push-action@v1
57 with:
58 file: apps/checker/private-location.Dockerfile
59 project: 9cknw183m8
60 context: apps/checker
61 tags: ghcr.io/openstatushq/private-location:latest
62 platforms: linux/amd64,linux/arm64
63 push: true