40 lines
1004 B
YAML
40 lines
1004 B
YAML
name: release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
workflow_dispatch:
|
|
inputs:
|
|
tag:
|
|
required: true
|
|
type: string
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: log into Gitea Packages
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: gitea.rudolf.keenetic.link
|
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
|
|
|
- name: setup buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: build and push
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: connectivity_tester
|
|
file: connectivity_tester/Dockerfile
|
|
push: true
|
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
|
tags: |
|
|
gitea.rudolf.keenetic.link/admin/connectivity_tester:${{ inputs.tag || github.ref_name }}
|
|
gitea.rudolf.keenetic.link/admin/connectivity_tester:latest
|