Skip to content

v2024.10.05

v2024.10.05 #128

Workflow file for this run

name: "Release"
on:
release:
types:
- "published"
jobs:
docker_image:
name: "Docker image"
runs-on: "ubuntu-22.04"
env:
IMAGE_NAME: "nventiveux/ttrss"
steps:
- uses: "actions/checkout@v3"
- name: "Set up QEMU"
uses: "docker/setup-qemu-action@v2"
with:
platforms: "amd64,arm64,arm"
- name: "Set up Docker Buildx"
id: "buildx"
uses: "docker/setup-buildx-action@v2"
with:
install: true
- name: "Prepare"
id: "prep"
run: |
tag_from_ref="${GITHUB_REF##refs/tags/}"
case "${GITHUB_EVENT_NAME}" in
release)
image_tags="${IMAGE_NAME}:latest,${IMAGE_NAME}:${tag_from_ref}";;
esac
# Set outputs
echo "image_tags=${image_tags}" >> $GITHUB_OUTPUT
- name: "Login to DockerHub"
uses: "docker/login-action@v2"
with:
username: "${{ secrets.DOCKER_USERNAME }}"
password: "${{ secrets.DOCKER_PASSWORD }}"
- name: "Build images"
uses: "docker/build-push-action@v3"
with:
builder: "${{ steps.buildx.outputs.name }}"
context: "."
file: "./Dockerfile"
platforms: "linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6"
push: true
tags: "${{ steps.prep.outputs.image_tags }}"
- name: "Update Docker Hub's README"
uses: "peter-evans/dockerhub-description@v3"
with:
username: "${{ secrets.DOCKER_USERNAME }}"
password: "${{ secrets.DOCKER_PASSWORD }}"
repository: "${{ env.IMAGE_NAME }}"