forked from abner/for-legacy-web
Compare commits
1 Commits
test-branc
...
handmade
| Author | SHA1 | Date |
|---|---|---|
|
|
1b2a980a47 |
|
|
@ -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 }}
|
||||||
|
|
|
||||||
|
|
@ -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."
|
|
||||||
Loading…
Reference in New Issue