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 name: Docker
# Some comment.
on: on:
push: push:
branches: branches:
- "master"
- "handmade" - "handmade"
tags: tags:
- "*" - "*"
paths-ignore: # TODO: Bring back once gitea is updated past 1.21
- ".github/**" # paths-ignore:
- "!.github/workflows/docker.yml" # - ".github/**"
- ".vscode/**" # - "!.github/workflows/docker.yml"
- ".gitignore" # - ".vscode/**"
- ".gitlab-ci.yml" # - ".gitignore"
- "LICENSE" # - ".gitlab-ci.yml"
- "README" # - "LICENSE"
# - "README"
pull_request: pull_request:
branches: branches:
- "master"
- "handmade" - "handmade"
paths-ignore: # TODO: Bring back once gitea is updated past 1.21
- ".github/**" # paths-ignore:
- "!.github/workflows/docker.yml" # - ".github/**"
- "!.github/workflows/preview_*.yml" # - "!.github/workflows/docker.yml"
- ".vscode/**" # - "!.github/workflows/preview_*.yml"
- ".gitignore" # - ".vscode/**"
- ".gitlab-ci.yml" # - ".gitignore"
- "LICENSE" # - ".gitlab-ci.yml"
- "README" # - "LICENSE"
# - "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
@ -49,14 +48,20 @@ jobs:
id: meta id: meta
uses: docker/metadata-action@v5 uses: docker/metadata-action@v5
with: with:
images: ghcr.io/AYM1607/revoltchat-client images: handmadecities/handmade-revolt-web-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: false # ${{ github.event_name != 'pull_request' }} push: ${{ 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 }}

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."