mirror of
https://github.com/tofuutils/pre-commit-opentofu.git
synced 2026-07-10 00:24:32 +02:00
feat: Remove build and push nightly schedule
Signed-off-by: Nikolai Mishin <sanduku.default@gmail.com>
This commit is contained in:
parent
c43835bd4b
commit
5fed19ce02
1 changed files with 0 additions and 33 deletions
33
.github/workflows/build-image.yaml
vendored
33
.github/workflows/build-image.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue