stickerpicker/.forgejo/workflows/publish.yml

25 lines
813 B
YAML
Raw Normal View History

2025-01-27 13:12:08 -08:00
name: Update the stickers
on:
workflow_run:
workflows: ["Update the stickers"]
branches: [publish]
types:
- completed
jobs:
publish:
2025-01-27 13:15:45 -08:00
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set repository name to lowercase
run: echo "REPO_NAME=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
2025-01-27 13:12:08 -08:00
2025-01-27 13:15:45 -08:00
- name: Authenticate with registry
run: docker login git.smgames.club -u ${{ github.repository_owner }} -p ${{ secrets.DOCKER_TOKEN }}
- name: Build Docker container
run: docker build --no-cache --progress=plain -t git.smgames.club/${{ env.REPO_NAME }}:latest .
2025-01-27 13:12:08 -08:00
2025-01-27 13:15:45 -08:00
- name: Push Docker container
run: docker push git.smgames.club/${{ env.REPO_NAME }}:latest