Skip to content

Increase sampling interval to 20 minutes #2

Increase sampling interval to 20 minutes

Increase sampling interval to 20 minutes #2

Workflow file for this run

---
name: Push
on:
push:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
test:
runs-on: ubuntu-latest
container:
image: ghcr.io/inko-lang/inko:latest
steps:
- run: microdnf install --quiet --assumeyes tar git
- uses: actions/checkout@v4
- run: inko --version
- run: inko pkg sync
- run: inko test
container:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
needs:
- test
if: github.ref_name == 'main'
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/metadata-action@v4
id: meta
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}