fix: timestamp and timing (#1009) #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Checker | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "apps/checker/**" | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: checker | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
# Permissions to use OIDC token authentication | |
permissions: | |
contents: read | |
id-token: write | |
# Allows pushing to the GitHub Container Registry | |
packages: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: depot/setup-action@v1 | |
- name: Log in to the Container registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push | |
uses: depot/build-push-action@v1 | |
with: | |
project: 9cknw183m8 | |
context: apps/checker | |
tags: ghcr.io/openstatushq/checker:latest | |
platforms: linux/amd64,linux/arm64 | |
push: true | |