Skip to content

Commit

Permalink
chore: add proper condition to kres
Browse files Browse the repository at this point in the history
Also run rekres

Signed-off-by: Dmitriy Matrenichev <[email protected]>
  • Loading branch information
DmitriyMV committed Aug 20, 2024
1 parent 472ded9 commit b393dc2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2024-08-20T09:47:46Z by kres 7be2a05.
# Generated on 2024-08-20T10:40:22Z by kres 7be2a05.

name: default
concurrency:
Expand Down Expand Up @@ -82,14 +82,14 @@ jobs:
run: |
make
- name: login-to-registry
if: startsWith(github.ref, 'refs/tags/')
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
username: ${{ github.repository_owner }}
- name: push
if: startsWith(github.ref, 'refs/tags/')
if: github.event_name != 'pull_request'
env:
PUSH: "true"
run: |
Expand Down
4 changes: 4 additions & 0 deletions .kres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@ spec:
nonMakeStep: true
command: make
- name: login-to-registry
conditions:
- except-pull-request
registryLoginStep:
registry: ghcr.io
- name: push
conditions:
- except-pull-request
nonMakeStep: true
command: make
environment:
Expand Down

0 comments on commit b393dc2

Please sign in to comment.