Files
prometheus-latency-exporter/.gitea/workflows/build.yml
T
tchivert e95d719644
build / build (push) Successful in 2m11s
update registry
2026-10-24 00:25:22 +02:00

41 lines
1.0 KiB
YAML

name: build
on:
push:
branches:
- "main"
jobs:
build:
runs-on: ubuntu-latest
container:
image: ${{ vars.RUNNER_IMAGE }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # all history for all branches and tags
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Login to registry
uses: docker/login-action@v4
with:
registry: ${{ vars.DOCKER_REGISTRY }}/rznet
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v4
env:
ACTIONS_RUNTIME_TOKEN: '' # See https://gitea.com/gitea/act_runner/issues/119
with:
context: .
file: ./Dockerfile
platforms: |
linux/amd64
linux/arm64
push: true
tags: ${{ vars.DOCKER_REGISTRY }}/rznet/prometheus-latency-exporter:latest