Compare commits

..

3 Commits

Author SHA1 Message Date
jmug 5486a21dde test action
Gitea Actions Demo / explore-gitea-actions (push) Successful in 49s Details
2026-02-23 01:02:19 -08:00
jmug 3c246d1ba3 asdf 2026-02-23 00:56:38 -08:00
jmug 51cf4e2ba4 [chore] Workflow cleanup. 2026-02-23 00:52:27 -08:00
2 changed files with 35 additions and 28 deletions

View File

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

12
.github/workflows/test-action.yml vendored Normal file
View File

@ -0,0 +1,12 @@
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."