chore(container): update ghcr.io/erhardtconsulting/base-php:8.3.13 do… #55
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "FreshRSS: Build & Publish Docker Image" | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'freshrss/**' | |
- '.github/workflows/build-freshrss.yml' | |
workflow_dispatch: | |
permissions: | |
contents: read | |
packages: write | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
env: | |
IMAGE_NAME: "freshrss" | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Set up QEMU for multi-architecture build | |
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3 | |
with: | |
platforms: all | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3 | |
with: | |
install: true | |
- name: Log in to GitHub Container Registry | |
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Log in to Docker Hub | |
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3 | |
with: | |
registry: docker.io | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Log in to Quay.io | |
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3 | |
with: | |
registry: quay.io | |
username: ${{ secrets.QUAYIO_USERNAME }} | |
password: ${{ secrets.QUAYIO_TOKEN }} | |
- name: Extract FRESHRSS_VERSION from Dockerfile | |
id: vars | |
run: | | |
FRESHRSS_VERSION=$(grep -E '^ARG FRESHRSS_VERSION=' freshrss/Dockerfile | cut -d '=' -f 2 | tr -d '"') | |
echo "FRESHRSS_VERSION=$FRESHRSS_VERSION" >> $GITHUB_ENV | |
- name: Build and push Docker image | |
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6 | |
with: | |
context: freshrss | |
platforms: "linux/386,linux/amd64,linux/arm64,linux/arm/v7" | |
push: true | |
tags: | | |
ghcr.io/erhardtconsulting/${{ env.IMAGE_NAME }}:${{ env.FRESHRSS_VERSION }} | |
ghcr.io/erhardtconsulting/${{ env.IMAGE_NAME }}:latest | |
docker.io/erhardtconsulting/${{ env.IMAGE_NAME }}:${{ env.FRESHRSS_VERSION }} | |
docker.io/erhardtconsulting/${{ env.IMAGE_NAME }}:latest | |
quay.io/erhardtconsulting/${{ env.IMAGE_NAME }}:${{ env.FRESHRSS_VERSION }} | |
quay.io/erhardtconsulting/${{ env.IMAGE_NAME }}:latest |