Skip to content

adding staging aut dep on hagrid-prod2 -n threefoldconnect-staging #165

adding staging aut dep on hagrid-prod2 -n threefoldconnect-staging

adding staging aut dep on hagrid-prod2 -n threefoldconnect-staging #165

Workflow file for this run

name: staging
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
uses: docker/login-action@v2

Check failure on line 12 in .github/workflows/staging.yml

View workflow run for this annotation

GitHub Actions / staging

Invalid workflow file

The workflow is not valid. .github/workflows/staging.yml (Line: 12, Col: 9): 'uses' is already defined
with:
username: ${{ secrets.TFDOCKERHUB_USERNAME }}
password: ${{ secrets.TFDOCKERHUB_PASSWORD }}
- name: Set config
run: mv frontend/public/config.prod.js frontend/public/config.js
- name: Build the 3botlogin Docker image
run: docker build . --file Dockerfile --tag threefolddev/3botlogin:staging-${{ github.sha }}
- name: Push the 3botlogin Docker image
run: docker push threefolddev/3botlogin:staging-${{ github.sha }}
- name: Build wizard Docker image
run: docker build wizard/ --file wizard/Dockerfile --tag threefolddev/wizard:staging-${{ github.sha }}
- name: Push wizard Docker image
run: docker push threefolddev/wizard:staging-${{ github.sha }}
deploy:
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set authorization certificate
run: |
mkdir ${HOME}/.kube
echo ${{ secrets.TF_KUBE_CONFIG }} | base64 --decode > ${HOME}/.kube/config
- name: Install or Upgrade production on cluster
run: |
helm upgrade threebotlogin --install helm_files -f helm_files/valuesStaging.yaml --set images.login.tag=staging-${{ github.sha }} --set images.wizard.tag=staging-${{ github.sha }} -n threefoldconnect-staging