feat: build using forgejo actions
Some checks failed
Docker / build-and-push-image (push) Failing after 2m6s

This commit is contained in:
Troy 2025-03-08 15:45:10 +00:00
parent 313d34fe11
commit d96f2f5dcf
Signed by: troy
GPG key ID: DFC06C02ED3B4711
4 changed files with 5 additions and 26 deletions

View file

@ -6,7 +6,7 @@ on:
- "main"
env:
REGISTRY: ghcr.io
REGISTRY: code.troylusty.com
IMAGE_NAME: ${{ github.repository }}
permissions:
@ -25,7 +25,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
@ -35,14 +35,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

View file

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

View file

@ -5,7 +5,7 @@ WORKDIR /usr/src/app
COPY . .
RUN ["npm", "ci"]
RUN ["npm", "run", "build"]
RUN ["npx", "astro", "build"]
FROM ghcr.io/static-web-server/static-web-server:latest
WORKDIR /