Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add proper condition to kres #7

Merged
merged 1 commit into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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