Skip to content

Commit

Permalink
run scheduled builds every week
Browse files Browse the repository at this point in the history
  • Loading branch information
ansnoussi committed Aug 22, 2023
1 parent 0b21ce7 commit 8720c4f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/continuous_delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Continuous Delivery
on:
release:
types: [ published ]
schedule:
- cron: '0 0 * * 0' # every sunday at midnight

jobs:

Expand All @@ -16,12 +18,16 @@ jobs:
uses: docker/setup-buildx-action@v2
- name: Checkout source code
uses: actions/checkout@v3
- name: Get latest release tag
id: latest_tag
run: |
echo ::set-output name=tag::$(curl -s "https://api.github.com/repos/${{ github.repository }}/releases/latest" | jq -r '.tag_name')
- name: Log in to Docker Hub Container Registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
run: |
make release GOTENBERG_VERSION=${{ github.event.release.tag_name }}
make release GOTENBERG_VERSION=${{ github.event.release.tag_name }} DOCKER_REPOSITORY=thecodingmachine
make release GOTENBERG_VERSION=${{ github.event.release.tag_name || steps.latest_tag.outputs.tag }}
make release GOTENBERG_VERSION=${{ github.event.release.tag_name || steps.latest_tag.outputs.tag }} DOCKER_REPOSITORY=thecodingmachine

0 comments on commit 8720c4f

Please sign in to comment.