feat: build using forgejo actions
This commit is contained in:
parent
8e0822244f
commit
c6dec071bb
4 changed files with 3 additions and 25 deletions
|
@ -6,7 +6,7 @@ on:
|
|||
- "main"
|
||||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
REGISTRY: code.troylusty.com
|
||||
IMAGE_NAME: ${{ github.repository }}
|
||||
|
||||
permissions:
|
||||
|
@ -15,7 +15,7 @@ permissions:
|
|||
|
||||
jobs:
|
||||
run-tests:
|
||||
uses: ./.github/workflows/test.yml
|
||||
uses: ./.forgejo/workflows/test.yml
|
||||
|
||||
build-and-push-image:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -30,7 +30,7 @@ jobs:
|
|||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
password: ${{ secrets.pat }}
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v6
|
||||
|
@ -40,14 +40,3 @@ jobs:
|
|||
tags: |
|
||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
||||
${{ 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
1
.github/CODEOWNERS
vendored
|
@ -1 +0,0 @@
|
|||
* @troylusty
|
10
.github/dependabot.yml
vendored
10
.github/dependabot.yml
vendored
|
@ -1,10 +0,0 @@
|
|||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
groups:
|
||||
dev-dependencies:
|
||||
patterns:
|
||||
- "*"
|
Loading…
Add table
Reference in a new issue