chore: edge Docker image now build & push after tests

This commit is contained in:
Julien Neuhart
2023-10-29 10:46:14 +01:00
parent 325b668d00
commit 62ea3b1a1a
2 changed files with 18 additions and 9 deletions

View File

@@ -3,9 +3,6 @@ name: Continuous Delivery
on:
release:
types: [ published ]
push:
branches:
- main
jobs:
release:
@@ -24,11 +21,6 @@ jobs:
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

View File

@@ -45,4 +45,21 @@ jobs:
- name: Run tests
run: |
make tests-once
bash <(curl -s https://codecov.io/bash)
bash <(curl -s https://codecov.io/bash)
multiarch_build:
needs:
- Tests
name: Multi-arch build
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: Build and push Docker image for main branch
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: |
make release GOTENBERG_VERSION=edge