Skip to content

Commit 1177013

Browse files
committed
Remove build and push nightly schedule
Signed-off-by: Nikolai Mishin <sanduku.default@gmail.com>
1 parent c43835b commit 1177013

1 file changed

Lines changed: 0 additions & 33 deletions

File tree

.github/workflows/build-image.yaml

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ on:
55
release:
66
types:
77
- created
8-
schedule:
9-
- cron: '00 00 * * *'
108

119
jobs:
1210
docker:
@@ -33,7 +31,6 @@ jobs:
3331
echo IMAGE_TAG=$([ ${{ github.ref_type }} == 'tag' ] && echo ${{ github.ref_name }} || echo 'latest') >> $GITHUB_ENV
3432
3533
- name: Build and Push release to ghcr.io
36-
if: github.event_name != 'schedule'
3734
uses: docker/build-push-action@v5
3835
with:
3936
context: .
@@ -49,22 +46,6 @@ jobs:
4946
secrets: |
5047
"github_token=${{ secrets.GITHUB_TOKEN }}"
5148
52-
- name: Build and Push nightly to ghcr.io
53-
if: github.event_name == 'schedule'
54-
uses: docker/build-push-action@v5
55-
with:
56-
context: .
57-
build-args: |
58-
INSTALL_ALL=true
59-
platforms: linux/amd64,linux/arm64
60-
push: true
61-
tags: |
62-
ghcr.io/${{ github.repository }}:nightly
63-
# Fix multi-platform: https://github.com/docker/buildx/issues/1533
64-
provenance: false
65-
secrets: |
66-
"github_token=${{ secrets.GITHUB_TOKEN }}"
67-
6849
- name: Login to DockerHub Container Registry
6950
uses: docker/login-action@v4
7051
with:
@@ -73,7 +54,6 @@ jobs:
7354
password: ${{ secrets.DOCKERHUB_PASSWORD }}
7455

7556
- name: Build and Push release to DockerHub
76-
if: github.event_name != 'schedule'
7757
uses: docker/build-push-action@v5
7858
with:
7959
context: .
@@ -85,16 +65,3 @@ jobs:
8565
registry.hub.docker.com/tofuutils/pre-commit-opentofu:${{ env.IMAGE_TAG }}
8666
registry.hub.docker.com/tofuutils/pre-commit-opentofu:latest
8767
provenance: false
88-
89-
- name: Build and Push nightly to DockerHub
90-
if: github.event_name == 'schedule'
91-
uses: docker/build-push-action@v5
92-
with:
93-
context: .
94-
build-args: |
95-
INSTALL_ALL=true
96-
platforms: linux/amd64,linux/arm64
97-
push: true
98-
tags: |
99-
registry.hub.docker.com/tofuutils/pre-commit-opentofu:nightly
100-
provenance: false

0 commit comments

Comments
 (0)