forked from abner/for-legacy-web
Compare commits
3 Commits
handmade
...
test-branc
| Author | SHA1 | Date |
|---|---|---|
|
|
5486a21dde | |
|
|
3c246d1ba3 | |
|
|
51cf4e2ba4 |
|
|
@ -1,39 +1,40 @@
|
|||
name: Docker
|
||||
|
||||
# Some comment.
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
- "handmade"
|
||||
tags:
|
||||
- "*"
|
||||
# TODO: Bring back once gitea is updated past 1.21
|
||||
# paths-ignore:
|
||||
# - ".github/**"
|
||||
# - "!.github/workflows/docker.yml"
|
||||
# - ".vscode/**"
|
||||
# - ".gitignore"
|
||||
# - ".gitlab-ci.yml"
|
||||
# - "LICENSE"
|
||||
# - "README"
|
||||
paths-ignore:
|
||||
- ".github/**"
|
||||
- "!.github/workflows/docker.yml"
|
||||
- ".vscode/**"
|
||||
- ".gitignore"
|
||||
- ".gitlab-ci.yml"
|
||||
- "LICENSE"
|
||||
- "README"
|
||||
pull_request:
|
||||
branches:
|
||||
- "master"
|
||||
- "handmade"
|
||||
# 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"
|
||||
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
|
||||
|
|
@ -48,20 +49,14 @@ jobs:
|
|||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: handmadecities/handmade-revolt-web-client
|
||||
images: ghcr.io/AYM1607/revoltchat-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: ${{ github.event_name != 'pull_request' }}
|
||||
push: false # ${{ github.event_name != 'pull_request' }}
|
||||
platforms: linux/amd64,linux/arm64
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
annotations: ${{ steps.meta.outputs.annotations }}
|
||||
|
|
|
|||
|
|
@ -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."
|
||||
Loading…
Reference in New Issue