feat: build using forgejo actions
All checks were successful
Docker / run-tests (push) Successful in 2m18s
Docker / build-and-push-image (push) Successful in 2m28s

This commit is contained in:
Troy 2025-03-08 14:53:12 +00:00
parent 8e0822244f
commit c6dec071bb
Signed by: troy
GPG key ID: DFC06C02ED3B4711
4 changed files with 3 additions and 25 deletions

View file

@ -6,7 +6,7 @@ on:
- "main" - "main"
env: env:
REGISTRY: ghcr.io REGISTRY: code.troylusty.com
IMAGE_NAME: ${{ github.repository }} IMAGE_NAME: ${{ github.repository }}
permissions: permissions:
@ -15,7 +15,7 @@ permissions:
jobs: jobs:
run-tests: run-tests:
uses: ./.github/workflows/test.yml uses: ./.forgejo/workflows/test.yml
build-and-push-image: build-and-push-image:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -30,7 +30,7 @@ jobs:
with: with:
registry: ${{ env.REGISTRY }} registry: ${{ env.REGISTRY }}
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.pat }}
- name: Build and push Docker image - name: Build and push Docker image
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
@ -40,14 +40,3 @@ jobs:
tags: | tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
- name: Get repository name
run: |
echo "REPO_NAME=${GITHUB_REPOSITORY#$GITHUB_REPOSITORY_OWNER/}" >> $GITHUB_ENV
- name: Delete oldest packages
uses: actions/delete-package-versions@v5
with:
package-name: ${{ env.REPO_NAME }}
package-type: "container"
min-versions-to-keep: 25

1
.github/CODEOWNERS vendored
View file

@ -1 +0,0 @@
* @troylusty

View file

@ -1,10 +0,0 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
groups:
dev-dependencies:
patterns:
- "*"