5 Commits

Author SHA1 Message Date
droideparanoico 01e641bf41 Delete directory '.github/workflows'
Build & Deploy / build-and-deploy (push) Successful in 6s
2026-07-01 13:07:42 +02:00
droideparanoico ac1e42d614 Delete directory '.gitea/wokrflows'
Build & Deploy / build-and-deploy (push) Successful in 4s
2026-07-01 12:46:05 +02:00
droideparanoico 7d012c2e44 Add .gitea/workflows/build.yaml
Build & Deploy / build-and-deploy (push) Successful in 18s
2026-07-01 12:45:52 +02:00
droideparanoico 86c3b4d4d4 Add .gitea/wokrflows/build.yaml
Docker Publish / build-and-push-image (push) Failing after 52s
Docker Publish / tag-release (push) Has been skipped
2026-07-01 12:43:20 +02:00
Volker Kopetzky 783581ffe4 Merge pull request #9 from voko/feature/add-related-links
Feature/add related links
2025-12-27 18:25:16 +01:00
2 changed files with 31 additions and 82 deletions
+31
View File
@@ -0,0 +1,31 @@
name: Build & Deploy
run-name: Build ${{ gitea.sha.substring(0, 7) }}
on:
push:
branches: [ main ]
env:
IMAGE_NAME: mbz-rss-feeder
CONTAINER_NAME: mbz-rss-feeder
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build Docker image
run: |
docker build -t ${{ env.IMAGE_NAME }}:${{ gitea.sha }} .
docker tag ${{ env.IMAGE_NAME }}:${{ gitea.sha }} ${{ env.IMAGE_NAME }}:latest
- name: Stop existing container (if any)
run: |
docker stop ${{ env.CONTAINER_NAME }} 2>/dev/null || true
docker rm ${{ env.CONTAINER_NAME }} 2>/dev/null || true
- name: Clean up old images
run: docker image prune -f --filter "until=24h"
-82
View File
@@ -1,82 +0,0 @@
name: Docker Publish
on:
push:
branches:
- "main"
- "fix/*"
- "feature/*"
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
tag-release:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
needs: build-and-push-image
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Read version from file
id: version
run: echo "TAG=$(cat VERSION)" >> $GITHUB_OUTPUT
- name: Create and push Git tag
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git tag -a "${{ steps.version.outputs.TAG }}" -m "Release ${{ steps.version.outputs.TAG }}"
git push origin "${{ steps.version.outputs.TAG }}"
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Read version from file
id: version
run: echo "TAG=$(cat VERSION)" >> $GITHUB_OUTPUT
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=${{ steps.version.outputs.TAG }},enable=${{ github.ref == 'refs/heads/main' }}
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
type=ref,event=branch
flavor: |
latest=false
prefix=
suffix=
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build, Test and Push Docker image
uses: docker/build-push-action@v5
with:
context: .
target: final
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}