mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 04:09:06 +00:00
fix: build on push tags (#785)
This commit is contained in:
14
.github/workflows/dockerhub-backend.yml
vendored
14
.github/workflows/dockerhub-backend.yml
vendored
@@ -1,12 +1,9 @@
|
|||||||
name: Build and Push Backend Docker Image (Docker Hub)
|
name: Build and Push Backend Docker Image (Docker Hub)
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
push:
|
||||||
types:
|
tags:
|
||||||
- closed
|
- "v*"
|
||||||
paths:
|
|
||||||
- "server/**"
|
|
||||||
- ".github/workflows/dockerhub-backend.yml"
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
@@ -16,11 +13,6 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: |
|
|
||||||
github.event_name == 'workflow_dispatch' ||
|
|
||||||
(github.event.pull_request.merged == true &&
|
|
||||||
startsWith(github.event.pull_request.head.ref, 'release-please--branches--'))
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|||||||
14
.github/workflows/dockerhub-frontend.yml
vendored
14
.github/workflows/dockerhub-frontend.yml
vendored
@@ -1,12 +1,9 @@
|
|||||||
name: Build and Push Frontend Docker Image
|
name: Build and Push Frontend Docker Image
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
push:
|
||||||
types:
|
tags:
|
||||||
- closed
|
- "v*"
|
||||||
paths:
|
|
||||||
- "www/**"
|
|
||||||
- ".github/workflows/dockerhub-frontend.yml"
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
@@ -16,11 +13,6 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: |
|
|
||||||
github.event_name == 'workflow_dispatch' ||
|
|
||||||
(github.event.pull_request.merged == true &&
|
|
||||||
startsWith(github.event.pull_request.head.ref, 'release-please--branches--'))
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user