Compare commits
2 Commits
703da324fa
...
ac2c61f221
| Author | SHA1 | Date | |
|---|---|---|---|
|
ac2c61f221
|
|||
|
ef3d46279f
|
@@ -1,6 +1,8 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
pnpm build
|
||||||
|
|
||||||
pnpm lint &
|
pnpm lint &
|
||||||
LINT_PID=$!
|
LINT_PID=$!
|
||||||
pnpm format:check &
|
pnpm format:check &
|
||||||
|
|||||||
@@ -12,20 +12,10 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Prepare Metadata
|
|
||||||
id: meta
|
|
||||||
run: |
|
|
||||||
REGISTRY_HOST=$(echo "${{ gitea.server_url }}" | sed -e 's|https://||' -e 's|http://||')
|
|
||||||
|
|
||||||
REPO_POSTFIXED=$(echo "${{ gitea.repository }}-ci" | tr '[:upper:]' '[:lower:]')
|
|
||||||
|
|
||||||
echo "registry=$REGISTRY_HOST" >> $GITHUB_OUTPUT
|
|
||||||
echo "repo_path=$REPO_POSTFIXED" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: Login to Gitea Registry
|
- name: Login to Gitea Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ steps.meta.outputs.registry }}
|
registry: git.max-richter.dev
|
||||||
username: ${{ gitea.actor }}
|
username: ${{ gitea.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
@@ -36,5 +26,5 @@ jobs:
|
|||||||
file: ./Dockerfile.ci
|
file: ./Dockerfile.ci
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
${{ steps.meta.outputs.registry }}/${{ steps.meta.outputs.repo_path }}:latest
|
git.max-richter.dev/${{ gitea.repository }}-ci:latest
|
||||||
${{ steps.meta.outputs.registry }}/${{ steps.meta.outputs.repo_path }}:${{ github.sha }}
|
git.max-richter.dev/${{ gitea.repository }}-ci:${{ github.sha }}
|
||||||
|
|||||||
Reference in New Issue
Block a user