Compare commits

..

1 Commits

Author SHA1 Message Date
jmug 1b2a980a47 [chore] Workflow cleanup.
Docker / publish (push) Successful in 13m59s Details
2026-02-23 01:55:29 -08:00
2 changed files with 28 additions and 35 deletions

View File

@ -1,40 +1,39 @@
name: Docker
# Some comment.
on:
push:
branches:
- "master"
- "handmade"
tags:
- "*"
paths-ignore:
- ".github/**"
- "!.github/workflows/docker.yml"
- ".vscode/**"
- ".gitignore"
- ".gitlab-ci.yml"
- "LICENSE"
- "README"
# TODO: Bring back once gitea is updated past 1.21
# paths-ignore:
# - ".github/**"
# - "!.github/workflows/docker.yml"
# - ".vscode/**"
# - ".gitignore"
# - ".gitlab-ci.yml"
# - "LICENSE"
# - "README"
pull_request:
branches:
- "master"
- "handmade"
paths-ignore:
- ".github/**"
- "!.github/workflows/docker.yml"
- "!.github/workflows/preview_*.yml"
- ".vscode/**"
- ".gitignore"
- ".gitlab-ci.yml"
- "LICENSE"
- "README"
# TODO: Bring back once gitea is updated past 1.21
# paths-ignore:
# - ".github/**"
# - "!.github/workflows/docker.yml"
# - "!.github/workflows/preview_*.yml"
# - ".vscode/**"
# - ".gitignore"
# - ".gitlab-ci.yml"
# - "LICENSE"
# - "README"
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
# NOTE: Running on pull requests for now, but without pushing.
# if: github.event_name != 'pull_request'
steps:
- name: Checkout
@ -49,14 +48,20 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/AYM1607/revoltchat-client
images: handmadecities/handmade-revolt-web-client
env:
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
- name: Login to DockerHub
uses: docker/login-action@v1
if: github.event_name != 'pull_request'
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and publish
uses: docker/build-push-action@v6
with:
context: .
push: false # ${{ github.event_name != 'pull_request' }}
push: ${{ github.event_name != 'pull_request' }}
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
annotations: ${{ steps.meta.outputs.annotations }}

View File

@ -1,12 +0,0 @@
name: Gitea Actions Demo
on: [push]
jobs:
explore-gitea-actions:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned."