Skip to content

Commit ebef69c

Browse files
committed
update
1 parent b56fb26 commit ebef69c

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

.github/workflows/docker-images.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
name: Docker Image Builder
22

33
on:
4-
workflow_dispatch:
5-
schedule:
6-
# Run once a week on Fridays
7-
- cron: "0 0 * * FRI"
8-
pull_request:
9-
paths:
10-
- ".github/workflows/docker-images.yml"
114
push:
12-
branches:
13-
- main
14-
paths:
15-
- ".github/workflows/docker-images.yml"
5+
# workflow_dispatch:
6+
# schedule:
7+
# # Run once a week on Fridays
8+
# - cron: "0 0 * * FRI"
9+
# pull_request:
10+
# paths:
11+
# - ".github/workflows/docker-images.yml"
12+
# push:
13+
# branches:
14+
# - main
15+
# paths:
16+
# - ".github/workflows/docker-images.yml"
1617

1718
jobs:
1819
build:
@@ -62,7 +63,7 @@ jobs:
6263
registry: ghcr.io
6364
username: ${{ github.actor }}
6465
password: ${{ secrets.GITHUB_TOKEN }}
65-
if: (github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main'
66+
if: (github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/docker'
6667
- name: Build docker image
6768
uses: docker/build-push-action@1dc73863535b631f98b2378be8619f83b136f4a0 # v6.17.0
6869
id: docker-build
@@ -72,7 +73,7 @@ jobs:
7273
tags: ghcr.io/${{ github.repository_owner }}/${{ matrix.IMAGE.TAG_NAME }}
7374
platforms: ${{ matrix.IMAGE.DOCKER_PLATFORM }}
7475
pull: true
75-
push: ${{ (github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main' }}
76+
push: ${{ (github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/docker' }}
7677
- name: Attese
7778
uses: actions/attest-build-provenance@db473fddc028af60658334401dc6fa3ffd8669fd # v2.3.0
7879
with:

0 commit comments

Comments
 (0)