feat: build using forgejo actions
Some checks failed
Docker / build-and-push-image (push) Failing after 2m6s
Some checks failed
Docker / build-and-push-image (push) Failing after 2m6s
This commit is contained in:
parent
313d34fe11
commit
d96f2f5dcf
4 changed files with 5 additions and 26 deletions
|
@ -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
|
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:
|
||||
- "*"
|
|
@ -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 /
|
||||
|
|
|
@ -23,7 +23,7 @@ function noSearchDefaultPageRender() {
|
|||
<details style="margin-top: 16px;">
|
||||
<summary>Demo search</summary>
|
||||
<p>Added so that some browsers treat this page as a search engine</p>
|
||||
<form class="url-container">
|
||||
<form class="url-container">
|
||||
<input
|
||||
type="text"
|
||||
name="q"
|
||||
|
@ -34,7 +34,7 @@ function noSearchDefaultPageRender() {
|
|||
<button type="submit" class="copy-button">
|
||||
<p>Search</p>
|
||||
</button>
|
||||
</form>
|
||||
</form>
|
||||
</details>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue