Update docker-build-push-dockerhub.yml
generate images with tagged versions
This commit is contained in:
@@ -5,7 +5,10 @@ name: Build and push image to DockerHub
|
|||||||
# Controls when the workflow will run
|
# Controls when the workflow will run
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches:
|
||||||
|
- 'main'
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
# update on run of Update Calendso nightly submodule update
|
# update on run of Update Calendso nightly submodule update
|
||||||
workflow_run:
|
workflow_run:
|
||||||
workflows: ["Update Calendso"]
|
workflows: ["Update Calendso"]
|
||||||
@@ -56,6 +59,15 @@ jobs:
|
|||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Docker meta
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v4
|
||||||
|
with:
|
||||||
|
images: |
|
||||||
|
docker.io/calendso/calendso
|
||||||
|
docker.io/calcom/cal.com
|
||||||
|
ghcr.io/calcom/cal.com
|
||||||
|
|
||||||
- name: Copy env
|
- name: Copy env
|
||||||
run: |
|
run: |
|
||||||
@@ -86,12 +98,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
context: ./
|
context: ./
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
push: true
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
tags: |
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
docker.io/${{ secrets.DOCKER_HUB_USERNAME }}/calendso:latest
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
docker.io/calcom/cal.com:latest
|
|
||||||
ghcr.io/calcom/web:latest
|
|
||||||
build-args: |
|
build-args: |
|
||||||
NEXT_PUBLIC_WEBAPP_URL=${{ env.NEXT_PUBLIC_WEBAPP_URL }}
|
NEXT_PUBLIC_WEBAPP_URL=${{ env.NEXT_PUBLIC_WEBAPP_URL }}
|
||||||
NEXT_PUBLIC_LICENSE_CONSENT=${{ env.NEXT_PUBLIC_LICENSE_CONSENT }}
|
NEXT_PUBLIC_LICENSE_CONSENT=${{ env.NEXT_PUBLIC_LICENSE_CONSENT }}
|
||||||
|
|||||||
Reference in New Issue
Block a user