mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-09 17:12:14 +01:00
35 lines
1.1 KiB
YAML
35 lines
1.1 KiB
YAML
name: Continuous Delivery
|
|
|
|
on:
|
|
release:
|
|
types: [ published ]
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
release:
|
|
name: Release Docker image
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
- name: Checkout source code
|
|
uses: actions/checkout@v4
|
|
- name: Log in to Docker Hub Container Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
- 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
|