testing on dev push, half-baked deployment workflow

This commit is contained in:
2025-11-14 02:19:16 +02:00
parent 4a7f5eabe9
commit 9d12ad5050
2 changed files with 33 additions and 1 deletions

View File

@@ -2,7 +2,7 @@ name: Test the running changes
on:
push:
branches: [ "master" ]
branches: [ "dev" ]
pull_request:
branches: [ "master" ]

View File

@@ -0,0 +1,32 @@
name: Build and deploy Docker image
on:
push:
branches:
- master
env:
CARGO_TERM_COLOR: always
jobs:
deploy:
name: Deploy
runs-on: rust-latest
steps:
- run: apt-get update -y && apt-get install nodejs -y
- uses: actions/checkout@v4
- run: cargo build --release
- uses: docker/setup-buildx-action@v3
with:
config-inline: |
[registry."gitea-http.apps.svc.cluster.local:3000"]
http = true
insecure = true
- uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: "gitea-http.apps.svc.cluster.local:3000".....