Skip to content

Commit

Permalink
Release only for main check
Browse files Browse the repository at this point in the history
  • Loading branch information
l0kix2 committed Dec 19, 2023
1 parent b4d45a3 commit 0241f1e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/check_main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
- checkout
with:
runs-on-value: ${{ needs.start-vm.outputs.label }}
release: true
secrets:
DOCKER_HUB_LOGIN: ${{ secrets.DOCKER_HUB_LOGIN }}
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/check_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
- checkout
with:
runs-on-value: ${{ needs.start-vm.outputs.label }}
release: false
secrets:
DOCKER_HUB_LOGIN: ${{ secrets.DOCKER_HUB_LOGIN }}
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/subflow_run_e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
runs-on-value:
required: true
type: string
release:
required: true
type: bool
secrets:
DOCKER_HUB_LOGIN:
required: true
Expand Down Expand Up @@ -55,10 +58,12 @@ jobs:
./compat_test.sh --from-version 0.4.1 --to-version trunk
- name: Docker Hub login
if: ${{release}}
run: |
echo '${{ secrets.DOCKER_HUB_PASSWORD }}' | docker login --username ${{ secrets.DOCKER_HUB_LOGIN}} --password-stdin
- name: Docker
if: ${{release}}
shell: bash
run: |
make release RELEASE_VERSION=0.0.$(git rev-list --count HEAD)-dev-${GITHUB_SHA} OPERATOR_IMAGE=ytsaurus/k8s-operator-nightly OPERATOR_CHART=ytop-chart-nightly

0 comments on commit 0241f1e

Please sign in to comment.