ci: switched to my brothers solution #51
@@ -23,21 +23,21 @@ jobs:
|
|||||||
VERSION=$(jq -r '.version' package.json)
|
VERSION=$(jq -r '.version' package.json)
|
||||||
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Build and Push Docker Image via CLI
|
- name: Log in to Gitea Container Registry
|
||||||
run: |
|
uses: docker/login-action@v3
|
||||||
IMAGE_NAME=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')
|
with:
|
||||||
|
registry: gitea:3000
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
|
||||||
echo "Logging into Gitea Registry..."
|
- name: Build and Push Docker Image
|
||||||
echo "${{ secrets.GITEA_TOKEN }}" | docker login gitea:3000 -u ${{ github.actor }} --password-stdin
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
echo "Building Docker Image..."
|
context: .
|
||||||
docker build \
|
push: true
|
||||||
-t gitea:3000/$IMAGE_NAME:v${{ env.VERSION }} \
|
tags: |
|
||||||
-t gitea:3000/$IMAGE_NAME:latest .
|
gitea:3000/${{ github.repository }}:v${{ env.VERSION }}
|
||||||
|
gitea:3000/${{ github.repository }}:latest
|
||||||
echo "Pushing Docker Image..."
|
|
||||||
docker push gitea:3000/$IMAGE_NAME:v${{ env.VERSION }}
|
|
||||||
docker push gitea:3000/$IMAGE_NAME:latest
|
|
||||||
|
|
||||||
create-release:
|
create-release:
|
||||||
name: Create Gitea Release
|
name: Create Gitea Release
|
||||||
|
|||||||
Reference in new issue
Block a user