Skip to content

Commit

Permalink
ci: 👷 Build and publish docker images on new version
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed May 24, 2022
1 parent 3a6ca3d commit e7ae611
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/publish_docker_images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Publish Docker images

on:
push:
tags:
- 'v*.*.*'

jobs:
push_images_to_docker_hub:
name: Push images to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push builder image
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: |
baptistearno/typebot-builder:latest
baptistearno/typebot-builder:${{ env.RELEASE_VERSION }}
build-args: |
SCOPE=builder
- name: Build and push viewer image
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: |
baptistearno/typebot-viewer:latest
baptistearno/typebot-viewer:${{ env.RELEASE_VERSION }}
build-args: |
SCOPE=viewer

4 comments on commit e7ae611

@vercel
Copy link

@vercel vercel bot commented on e7ae611 May 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on e7ae611 May 24, 2022

@vercel
Copy link

@vercel vercel bot commented on e7ae611 May 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on e7ae611 May 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

builder-v2 – ./apps/builder

builder-v2-typebot-io.vercel.app
builder-v2-git-main-typebot-io.vercel.app
app.typebot.io

Please sign in to comment.