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"
|
- "main"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: code.troylusty.com
|
||||||
IMAGE_NAME: ${{ github.repository }}
|
IMAGE_NAME: ${{ github.repository }}
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
|
@ -25,7 +25,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
|
||||||
|
@ -35,14 +35,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
|
|
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 . .
|
COPY . .
|
||||||
|
|
||||||
RUN ["npm", "ci"]
|
RUN ["npm", "ci"]
|
||||||
RUN ["npm", "run", "build"]
|
RUN ["npx", "astro", "build"]
|
||||||
|
|
||||||
FROM ghcr.io/static-web-server/static-web-server:latest
|
FROM ghcr.io/static-web-server/static-web-server:latest
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|
|
@ -23,7 +23,7 @@ function noSearchDefaultPageRender() {
|
||||||
<details style="margin-top: 16px;">
|
<details style="margin-top: 16px;">
|
||||||
<summary>Demo search</summary>
|
<summary>Demo search</summary>
|
||||||
<p>Added so that some browsers treat this page as a search engine</p>
|
<p>Added so that some browsers treat this page as a search engine</p>
|
||||||
<form class="url-container">
|
<form class="url-container">
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
name="q"
|
name="q"
|
||||||
|
@ -34,7 +34,7 @@ function noSearchDefaultPageRender() {
|
||||||
<button type="submit" class="copy-button">
|
<button type="submit" class="copy-button">
|
||||||
<p>Search</p>
|
<p>Search</p>
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
</details>
|
</details>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue