AniX/.github/workflows/docker-anix.yml
Radiquum 30285e84c6
Some checks failed
Build and Publish 'anix-api-prox' to Docker Hub / publish (push) Has been cancelled
Build and Publish 'anix-player-parsers' to Docker Hub / publish (push) Has been cancelled
Build and Publish 'anix' to Docker Hub / publish (push) Has been cancelled
CI: update workflows
2025-07-09 15:48:09 +05:00

30 lines
809 B
YAML

name: Build and Publish 'anix' to Docker Hub
on:
push:
branches:
- V3
paths:
- 'app/**'
- 'Dockerfile'
- 'middleware.ts'
- 'next.config.js'
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Dynamically set 'tag' environment variable
run: echo "tag=$(date +'%d-%m-%Y')" >> $GITHUB_ENV
- name: Build Image
run: |
docker build . -t radiquum/anix:latest
docker tag radiquum/anix:latest radiquum/anix:${{ env.tag }}
- name: Publish Image
run: |
docker login -u radiquum -p ${{ secrets.DOCKERHUB_TOKEN }}
docker push radiquum/anix:latest
docker push radiquum/anix:${{ env.tag }}