Compare commits
24
Commits
auto-8ecc6f04
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e6444ad49c | ||
|
|
eb851d9b1d | ||
|
|
c719f6ab8d | ||
|
|
6e6f9c67fc | ||
|
|
77b3cc2c08 | ||
|
|
d011648e56 | ||
|
|
c22cadc48b | ||
|
|
2fa05da943 | ||
|
|
3406491dcc | ||
|
|
7a08d4d022 | ||
|
|
6e9a998eba | ||
|
|
ef4af24c1e | ||
|
|
f80a524d33 | ||
|
|
faa3e32a53 | ||
|
|
e6d184bd95 | ||
|
|
d097862c81 | ||
|
|
b2e85b686c | ||
|
|
932be82ae6 | ||
|
|
953e4dcba7 | ||
|
|
81e0641ab1 | ||
|
|
8f71c723fb | ||
|
|
7fed0c08cd | ||
|
|
4b8ece95c0 | ||
|
|
0734adc229 |
@@ -0,0 +1,49 @@
|
||||
name: release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'auto-*'
|
||||
tags:
|
||||
- 'v*'
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
tag:
|
||||
description: 'Image tag (e.g. auto-<sha>)'
|
||||
required: false
|
||||
default: latest
|
||||
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: resolve version
|
||||
id: version
|
||||
run: |
|
||||
if [ -n "${{ inputs.tag }}" ] && [ "${{ inputs.tag }}" != "latest" ]; then
|
||||
echo "VERSION=${{ inputs.tag }}" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "VERSION=${GITHUB_REF_NAME##*/}" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
echo "VERSION=$VERSION"
|
||||
|
||||
- name: build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: connectivity_tester
|
||||
file: connectivity_tester/Dockerfile
|
||||
push: true
|
||||
tags: |
|
||||
gitea.rudolf.keenetic.link/hermes/connectivity_tester:${{ steps.version.outputs.VERSION }}
|
||||
gitea.rudolf.keenetic.link/hermes/connectivity_tester:latest
|
||||
@@ -1,9 +1,6 @@
|
||||
services:
|
||||
connectivity-tester:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: registry.rudolf.keenetic.link/connectivity_tester:${version}
|
||||
image: gitea.rudolf.keenetic.link/hermes/connectivity_tester:${version}
|
||||
hostname: connectivity-tester
|
||||
user: "0:0"
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user