feat: Remove build and push nightly schedule

Signed-off-by: Nikolai Mishin <sanduku.default@gmail.com>
This commit is contained in:
Nikolai Mishin 2026-06-20 00:11:15 +02:00
commit 5fed19ce02
No known key found for this signature in database
GPG key ID: 106DB969D0EDEB34

View file

@ -5,8 +5,6 @@ on:
release:
types:
- created
schedule:
- cron: '00 00 * * *'
jobs:
docker:
@ -33,7 +31,6 @@ jobs:
echo IMAGE_TAG=$([ ${{ github.ref_type }} == 'tag' ] && echo ${{ github.ref_name }} || echo 'latest') >> $GITHUB_ENV
- name: Build and Push release to ghcr.io
if: github.event_name != 'schedule'
uses: docker/build-push-action@v5
with:
context: .
@ -49,22 +46,6 @@ jobs:
secrets: |
"github_token=${{ secrets.GITHUB_TOKEN }}"
- name: Build and Push nightly to ghcr.io
if: github.event_name == 'schedule'
uses: docker/build-push-action@v5
with:
context: .
build-args: |
INSTALL_ALL=true
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/${{ github.repository }}:nightly
# Fix multi-platform: https://github.com/docker/buildx/issues/1533
provenance: false
secrets: |
"github_token=${{ secrets.GITHUB_TOKEN }}"
- name: Login to DockerHub Container Registry
uses: docker/login-action@v4
with:
@ -73,7 +54,6 @@ jobs:
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and Push release to DockerHub
if: github.event_name != 'schedule'
uses: docker/build-push-action@v5
with:
context: .
@ -85,16 +65,3 @@ jobs:
registry.hub.docker.com/tofuutils/pre-commit-opentofu:${{ env.IMAGE_TAG }}
registry.hub.docker.com/tofuutils/pre-commit-opentofu:latest
provenance: false
- name: Build and Push nightly to DockerHub
if: github.event_name == 'schedule'
uses: docker/build-push-action@v5
with:
context: .
build-args: |
INSTALL_ALL=true
platforms: linux/amd64,linux/arm64
push: true
tags: |
registry.hub.docker.com/tofuutils/pre-commit-opentofu:nightly
provenance: false