all repos

freshrss-image @ cb5fb0bd7498e5dda18e621560288782cdd78403

my FreshRSS setup (abandoned)

freshrss-image/.github/workflows/release.yml(view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: release
on:
  workflow_dispatch:
  push:
    branches:
      - main
    tags:
      - 'v*'

env:
  IMAGE_NAME: ghcr.io/${{ github.repository }}
  TAG: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || github.sha }}

jobs:
  release:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      packages: write
    steps:
      - uses: actions/checkout@v4

      - name: Log in to GitHub Container Registry
        uses: docker/login-action@v3
        with:
          registry: ghcr.io
          username: ${{ github.actor }}
          password: ${{ secrets.GITHUB_TOKEN }}

      - name: Fetch extensions
        run: ./fetch.sh

      - name: Build the container
        run: ./build.sh "$IMAGE_NAME" "$TAG"

      - name: Publish the container
        run: |
          docker push "$IMAGE_NAME:$TAG"
          if [[ "${{ github.ref }}" == refs/tags/* ]]; then
            docker tag "$IMAGE_NAME:$TAG" "$IMAGE_NAME:latest"
            docker push "$IMAGE_NAME:latest"
          fi