Skip to content

Commit

Permalink
Update docker-build-push-dockerhub.yml
Browse files Browse the repository at this point in the history
generate images with tagged versions
  • Loading branch information
krumware authored Jan 24, 2023
1 parent 2d645b1 commit 3b41ddc
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/docker-build-push-dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ name: Build and push image to DockerHub
# Controls when the workflow will run
on:
push:
branches: [main]
branches:
- 'main'
tags:
- 'v*'
# update on run of Update Calendso nightly submodule update
workflow_run:
workflows: ["Update Calendso"]
Expand Down Expand Up @@ -56,6 +59,15 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
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
run: |
Expand Down Expand Up @@ -86,12 +98,10 @@ jobs:
with:
context: ./
file: ./Dockerfile
push: true
push: ${{ github.event_name != 'pull_request' }}
platforms: linux/amd64
tags: |
docker.io/${{ secrets.DOCKER_HUB_USERNAME }}/calendso:latest
docker.io/calcom/cal.com:latest
ghcr.io/calcom/web:latest
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
NEXT_PUBLIC_WEBAPP_URL=${{ env.NEXT_PUBLIC_WEBAPP_URL }}
NEXT_PUBLIC_LICENSE_CONSENT=${{ env.NEXT_PUBLIC_LICENSE_CONSENT }}
Expand Down

0 comments on commit 3b41ddc

Please sign in to comment.