Compare commits

...
Sign in to create a new pull request.

46 commits

Author SHA1 Message Date
0bc6b81c8c .forgejo/workflows/openbao.yml hinzugefügt
Some checks failed
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 1s
CodeQL / Analyze (push) Failing after 1s
openbao / build (push) Failing after 1s
Go / build (push) Successful in 30s
2025-10-20 11:28:07 +00:00
a50bc46701 .forgejo/workflows/debian.yml aktualisiert
Some checks failed
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 2s
CodeQL / Analyze (push) Failing after 1s
Go / build (push) Successful in 19s
Create the timetracker DEB / Create Package (push) Failing after 2s
2025-09-05 05:34:19 +00:00
0f3e436464 .forgejo/workflows/debian.yml aktualisiert
Some checks failed
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 1s
CodeQL / Analyze (push) Failing after 1s
Go / build (push) Successful in 16s
Create the timetracker DEB / Create Package (push) Successful in 18s
2025-09-03 12:44:58 +00:00
8ca87f58d3 .forgejo/workflows/debian.yml aktualisiert
Some checks failed
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 1s
CodeQL / Analyze (push) Failing after 1s
Go / build (push) Successful in 13s
Create the timetracker DEB / Create Package (push) Successful in 17s
2025-09-03 12:42:08 +00:00
e943de0425 .forgejo/workflows/debian.yml aktualisiert
Some checks failed
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 1s
CodeQL / Analyze (push) Failing after 2s
Go / build (push) Successful in 15s
Create the timetracker DEB / Create Package (push) Successful in 26s
2025-09-03 12:38:49 +00:00
2b8bfa6c93 .forgejo/workflows/debian.yml aktualisiert
Some checks failed
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 1s
CodeQL / Analyze (push) Failing after 1s
Go / build (push) Successful in 14s
Create the timetracker DEB / Create Package (push) Failing after 15s
2025-09-03 12:27:01 +00:00
75e1d5f03a .forgejo/workflows/debian.yml aktualisiert
Some checks failed
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 1s
CodeQL / Analyze (push) Failing after 1s
Go / build (push) Successful in 13s
Create the timetracker DEB / Create Package (push) Failing after 17s
2025-09-03 12:24:35 +00:00
1a2ef19c59 .forgejo/workflows/debian.yml aktualisiert
Some checks failed
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 1s
CodeQL / Analyze (push) Failing after 1s
Go / build (push) Successful in 13s
2025-09-03 12:24:01 +00:00
53eb6001a5 .forgejo/workflows/debian.yml aktualisiert
Some checks failed
CodeQL / Analyze (push) Failing after 1s
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 3s
Go / build (push) Has been cancelled
2025-09-03 12:23:50 +00:00
09966039b6 .forgejo/workflows/debian.yml aktualisiert
Some checks failed
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 1s
CodeQL / Analyze (push) Failing after 1s
Go / build (push) Has been cancelled
2025-09-03 12:23:39 +00:00
438f8bfcf0 .forgejo/workflows/debian.yml aktualisiert
Some checks failed
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 1s
CodeQL / Analyze (push) Failing after 1s
Go / build (push) Successful in 14s
2025-09-03 12:23:09 +00:00
84c39e3519 .forgejo/workflows/debian.yml aktualisiert
Some checks failed
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 1s
CodeQL / Analyze (push) Failing after 1s
Go / build (push) Successful in 12s
2025-09-03 12:21:02 +00:00
8ca4b1bc43 .forgejo/workflows/debian.yml aktualisiert
Some checks failed
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 1s
CodeQL / Analyze (push) Failing after 1s
Go / build (push) Successful in 14s
2025-09-03 11:51:28 +00:00
9a904bd48f .forgejo/workflows/debian.yml aktualisiert
Some checks failed
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 1s
CodeQL / Analyze (push) Failing after 1s
Go / build (push) Successful in 13s
2025-09-03 11:51:07 +00:00
c7c194e5a5 .forgejo/workflows/debian.yml aktualisiert
Some checks failed
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 1s
CodeQL / Analyze (push) Failing after 1s
Go / build (push) Successful in 13s
2025-09-03 11:49:53 +00:00
489be8de02 .forgejo/workflows/debian.yml aktualisiert
Some checks failed
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 1s
CodeQL / Analyze (push) Failing after 1s
Go / build (push) Successful in 13s
Create the timetracker DEB / Create Package (push) Failing after 24s
2025-09-03 11:47:12 +00:00
4c6aca38f2 .forgejo/workflows/debian.yml aktualisiert
Some checks failed
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 1s
CodeQL / Analyze (push) Failing after 1s
Go / build (push) Successful in 13s
Create the timetracker DEB / Create Package (push) Failing after 24s
2025-09-03 11:44:04 +00:00
074de69878 .forgejo/workflows/debian.yml aktualisiert
Some checks failed
CodeQL / Analyze (push) Failing after 1s
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 1s
Create the timetracker DEB / Create Package (push) Failing after 27s
Go / build (push) Successful in 13s
2025-09-03 11:42:08 +00:00
47af533d9f .forgejo/workflows/debian.yml aktualisiert
Some checks failed
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 1s
CodeQL / Analyze (push) Failing after 1s
Go / build (push) Successful in 13s
Create the timetracker DEB / Create Package (push) Failing after 26s
2025-09-03 11:40:57 +00:00
a32b8b2a5c .forgejo/workflows/debian.yml aktualisiert
Some checks failed
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 1s
CodeQL / Analyze (push) Failing after 1s
Go / build (push) Successful in 13s
Create the timetracker DEB / Create Package (push) Failing after 26s
2025-09-03 11:39:33 +00:00
7e65e7012e .forgejo/workflows/debian.yml aktualisiert
Some checks failed
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 1s
CodeQL / Analyze (push) Failing after 1s
Go / build (push) Successful in 13s
Create the timetracker DEB / Create Package (push) Failing after 26s
2025-09-03 11:37:26 +00:00
bc4efc49b8 .forgejo/workflows/debian.yml aktualisiert
Some checks failed
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 1s
CodeQL / Analyze (push) Failing after 6s
Go / build (push) Successful in 24s
Create the timetracker DEB / Create Package (push) Successful in 41s
2025-09-03 11:32:09 +00:00
b72c4de2a6 .forgejo/workflows/debian.yml aktualisiert
Some checks failed
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 1s
CodeQL / Analyze (push) Failing after 1s
Go / build (push) Successful in 22s
Create the timetracker DEB / Create Package (push) Failing after 32s
2025-09-03 09:21:52 +00:00
09227bd266 .forgejo/workflows/debian.yml aktualisiert
Some checks failed
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 1s
CodeQL / Analyze (push) Failing after 1s
Go / build (push) Successful in 1m0s
Create the timetracker DEB / Create Package (push) Successful in 29s
2025-09-03 09:19:58 +00:00
d218f8bbe8 test
Some checks failed
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 1s
CodeQL / Analyze (push) Failing after 14s
Go / build (push) Successful in 41s
Create the timetracker DEB / Create Package (push) Failing after 48s
2025-08-07 14:40:12 +02:00
3d817cf737 test
Some checks failed
CodeQL / Analyze (push) Failing after 1s
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 8s
Go / build (push) Successful in 46s
Create the timetracker DEB / Create Package (push) Failing after 2m4s
2025-08-07 14:33:46 +02:00
692f41c5fb test
Some checks failed
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 1s
CodeQL / Analyze (push) Failing after 6s
Go / build (push) Successful in 45s
Create the timetracker DEB / Create Package (push) Failing after 25s
2025-08-07 10:12:58 +02:00
ccda5dcc01 test
Some checks failed
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 1s
CodeQL / Analyze (push) Failing after 3s
Go / build (push) Successful in 45s
Create the timetracker DEB / Create Package (push) Failing after 31s
2025-08-07 09:46:08 +02:00
eb80082733 test
Some checks failed
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 1s
CodeQL / Analyze (push) Failing after 3s
Go / build (push) Successful in 38s
Create the timetracker DEB / Create Package (push) Failing after 30s
2025-08-07 09:39:45 +02:00
d0339fee45 test
Some checks failed
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 4s
CodeQL / Analyze (push) Failing after 7s
Go / build (push) Successful in 53s
Create the timetracker DEB / Create Package (push) Failing after 31s
2025-08-07 09:35:09 +02:00
2a0316008a test
Some checks failed
CodeQL / Analyze (push) Failing after 1s
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 3s
Create the timetracker DEB / Create Package (push) Failing after 3s
Go / build (push) Successful in 40s
2025-08-06 11:15:29 +02:00
f3af9cb5a7 test
Some checks failed
CodeQL / Analyze (push) Failing after 1s
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 4s
Go / build (push) Successful in 37s
Create the timetracker DEB / Create Package (push) Successful in 37s
2025-08-06 11:05:56 +02:00
6f7ff56a80 test
Some checks failed
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 1s
CodeQL / Analyze (push) Failing after 4s
Create the timetracker DEB / Create Package (push) Failing after 26s
Go / build (push) Successful in 43s
2025-08-06 11:03:27 +02:00
bc5aa1e45c test
Some checks failed
CodeQL / Analyze (push) Failing after 1s
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 4s
Create the timetracker DEB / Create Package (push) Failing after 4s
Go / build (push) Successful in 43s
2025-08-06 10:54:59 +02:00
c9d9c0b0e7 test
Some checks failed
CodeQL / Analyze (push) Failing after 1s
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 8s
Go / build (push) Successful in 24s
Create the timetracker DEB / Create Package (push) Failing after 4s
2025-08-06 09:08:54 +02:00
b7b725753f test
Some checks failed
CodeQL / Analyze (push) Failing after 4s
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 4s
Go / build (push) Successful in 43s
Create the timetracker DEB / Create Package (push) Failing after 10s
2025-08-06 09:01:14 +02:00
9fa12746ca test
Some checks failed
CodeQL / Analyze (push) Failing after 1s
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 6s
Go / build (push) Successful in 19s
Create the timetracker DEB / Create Package (push) Failing after 12s
2025-08-06 08:56:23 +02:00
390faa088b test
Some checks failed
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 1s
CodeQL / Analyze (push) Failing after 5s
Go / build (push) Successful in 38s
2025-08-06 08:55:14 +02:00
ea03051cdc test
Some checks failed
CodeQL / Analyze (push) Failing after 1s
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 3s
Create the timetracker DEB / Create Package (push) Successful in 31s
Go / build (push) Successful in 1m31s
2025-08-06 08:52:14 +02:00
d540272153 test
Some checks failed
CodeQL / Analyze (push) Failing after 1s
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 4s
Create the timetracker DEB / Create Package (push) Failing after 2s
Go / build (push) Successful in 42s
2025-08-06 08:45:31 +02:00
4386eef415 test
Some checks failed
CodeQL / Analyze (push) Failing after 0s
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 3s
Create the timetracker DEB / Create Package (push) Failing after 7s
Go / build (push) Successful in 48s
2025-08-06 08:35:16 +02:00
08385977cc switch to v4
Some checks failed
CodeQL / Analyze (push) Failing after 1s
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 6s
Create the timetracker DEB / Create Package (push) Failing after 3s
Go / build (push) Successful in 1m14s
2025-08-05 13:46:12 +02:00
8faa251b5e use softprops
Some checks failed
CodeQL / Analyze (push) Failing after 8s
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 29s
Go / build (push) Successful in 32s
Create the timetracker DEB / Create Package (push) Failing after 3s
2025-08-05 11:41:25 +02:00
a216a792ff switch to v3
Some checks failed
CodeQL / Analyze (push) Failing after 3s
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 34s
Create the timetracker DEB / Create Package (push) Failing after 3s
Go / build (push) Successful in 1m58s
2025-08-05 08:55:00 +02:00
24621d48fd move github actions to forgejo
Some checks failed
CodeQL / Analyze (push) Failing after 1s
Anchore Syft SBOM scan / Anchore-Build-Scan (push) Failing after 6s
Go / build (push) Successful in 42s
Create the timetracker DEB / Create Package (push) Failing after 1s
2025-07-24 12:59:00 +02:00
9347134276 Fix scripts
- use full path to binary to prevent loops
2025-06-05 08:25:42 +02:00
9 changed files with 104 additions and 45 deletions

View file

@ -0,0 +1,78 @@
name: Create the timetracker DEB
permissions:
contents: write
on:
push:
tags:
- 'v*'
jobs:
Create_Packages:
name: Create Package
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: https://code.forgejo.org/actions/setup-go@v5
with:
go-version: '1.18'
- name: Tidy dependencies
run: go mod tidy
- name: Build
run: go build -o timetracker cmd/main.go
- name: Copy necessary files
run: |
mkdir -p PKG_SOURCE/usr/local/bin
mkdir -p PKG_SOURCE/var/lib/timetracker
mkdir -p PKG_SOURCE/lib/systemd/system
cp -Rf ./DEBIAN PKG_SOURCE/
cp -Rf ./timetracker PKG_SOURCE/var/lib/timetracker/
cp -Rf ./scripts/* PKG_SOURCE/var/lib/timetracker/
cp -Rf ./systemd/* PKG_SOURCE/lib/systemd/system/
- name: Create Deb package
run: |
dpkg-deb --build PKG_SOURCE timetracker_${{github.ref_name}}.deb
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.test }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.test }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: timetracker_${{github.ref_name}}.deb
asset_name: timetracker_${{github.ref_name}}.deb
asset_content_type: application/zip
- name: Upload Artifact (für CI-Artefakt)
uses: actions/upload-artifact@v3
with:
name: timetracker_${{github.ref_name}}.deb
path: timetracker_${{github.ref_name}}.deb
retention-days: 5
token: ${{ secrets.test }}
- name: Upload Package
run: |
FILE="timetracker_${{github.ref_name}}.deb"
ORG="Ronny.Friedland"
REPO="timetracker"
VERSION=${{github.ref_name}}
curl -v --header "Authorization: Bearer ${{ secrets.TEST }}" \
--upload-file $FILE \
"https://edp.buildth.ing/api/packages/${ORG}/generic/${REPO}/${VERSION}/${FILE}"

View file

@ -0,0 +1,23 @@
name: openbao
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Read Openbao secrets
id: read-openbao-secrets
uses: hashicorp/vault-action@v2
with:
url: https://vault-test.mms-at-work.de:8200
token: ${{ secrets.VAULT_TEST_TOKEN }}
secrets: |
testproject/test/testproject foo | FOO
- name: Echo secret value from Openbao
run: echo "$FOO"

View file

@ -1,42 +0,0 @@
name: Create the timetracker DEB
permissions:
contents: write
on:
push:
tags:
- 'v*'
jobs:
Create_Packages:
name: Create Package
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Tidy dependencies
run: go mod tidy
- name: Build
run: go build -o timetracker cmd/main.go
- name: Copy necessary files
run: |
mkdir -p PKG_SOURCE/usr/local/bin
mkdir -p PKG_SOURCE/var/lib/timetracker
mkdir -p PKG_SOURCE/lib/systemd/system
cp -Rf ./DEBIAN PKG_SOURCE/
cp -Rf ./timetracker PKG_SOURCE/var/lib/timetracker/
cp -Rf ./scripts/* PKG_SOURCE/var/lib/timetracker/
cp -Rf ./systemd/* PKG_SOURCE/lib/systemd/system/
- name: Create Deb package
run: |
dpkg-deb --build PKG_SOURCE timetracker_${{github.ref_name}}.deb
- name: Release the Deb package
uses: softprops/action-gh-release@v1
with:
files: timetracker_${{github.ref_name}}.deb

View file

@ -1,5 +1,5 @@
Package: timetracker
Version: 1.0.2
Version: 1.2.0
Section: misc
Priority: optional
Architecture: all

View file

@ -1,3 +1,3 @@
#!/usr/bin/env sh
timetracker -archivedata=true
/var/lib/timetracker/timetracker -archivedata=true

View file

@ -1,3 +1,3 @@
#!/usr/bin/env sh
timetracker
/var/lib/timetracker/timetracker