2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-12-23 18:48:58 +00:00

Merge pull request #533 from revant/ci-fix-workflows

ci: fixes ci steps
This commit is contained in:
Revant Nandgaonkar 2021-10-30 16:26:07 +05:30 committed by GitHub
commit 08a542978f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,6 +88,7 @@ jobs:
- uses: actions/checkout@v2
- uses: docker/setup-buildx-action@v1
- uses: docker/login-action@v1
if: github.event_name != 'pull_request'
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
@ -110,6 +111,7 @@ jobs:
- uses: actions/checkout@v2
- uses: docker/setup-buildx-action@v1
- uses: docker/login-action@v1
if: github.event_name != 'pull_request'
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
@ -156,6 +158,7 @@ jobs:
run: sudo apt-get install -y w3m
- name: Test
if: github.event_name == 'pull_request'
run: |
./tests/check-format.sh
./tests/docker-test.sh
@ -180,14 +183,11 @@ jobs:
- name: Release Helm Chart
if: needs.resolve-matrix.outputs.build-target == 'stable'
uses: webfactory/ssh-agent@v0.5.3
with:
ssh-private-key: ${{ secrets.HELM_DEPLOY_KEY }}
run: |
export GIT_SSH_COMMAND="ssh -i ${PWD}/deploy_key"
echo -n $HELM_DEPLOY_KEY | base64 -di > deploy_key
chmod 400 deploy_key;
ssh-keyscan github.com >> $HOME/.ssh/known_hosts 2>/dev/null;
pip install --upgrade pip
git clone git@github.com:frappe/helm.git && cd helm
pip install -r release_wizard/requirements.txt
./release_wizard/wizard 13 patch --remote origin --ci
env:
HELM_DEPLOY_KEY: ${{ secrets.HELM_DEPLOY_KEY }}