feat: add a new edge release

This commit is contained in:
Julien Neuhart
2023-10-28 17:55:22 +02:00
parent 54daac329e
commit c8b318b315
2 changed files with 36 additions and 2 deletions

View File

@@ -3,9 +3,11 @@ name: Continuous Delivery
on:
release:
types: [ published ]
push:
branches:
- main
jobs:
release:
name: Release Docker image
runs-on: ubuntu-latest
@@ -21,7 +23,12 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
- name: Build and push Docker image for release
if: github.event_name == 'release'
run: |
make release GOTENBERG_VERSION=${{ github.event.release.tag_name }}
make release GOTENBERG_VERSION=${{ github.event.release.tag_name }} DOCKER_REPOSITORY=thecodingmachine
- name: Build and push Docker image for main branch
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: |
make release GOTENBERG_VERSION=edge