Update redis to 4.5.5 #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Superset to Beta | |
on: | |
push: | |
branches: | |
- beta-* | |
jobs: | |
Deploy-Beta-Superset: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Ensure python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
# - name: Acquire list of changed python files | |
# id: all-files | |
# uses: jitterbit/get-changed-files@v1 | |
# continue-on-error: true | |
# - name: Ignore non-python files | |
# id: files | |
# run: | | |
# declare -a python_files | |
# for changed_file in ${{ steps.all-files.outputs.all }}; do | |
# if [[ $changed_file == *.py ]] | |
# then | |
# python_files+="${changed_file} " | |
# fi | |
# done | |
# echo "::set-output name=python::${python_files[@]}" | |
# - name: Install dependencies | |
# if: ${{ steps.files.outputs.python != '' }} | |
# run: pip install -r requirements_frozen.txt; pip install pylint | |
# - name: Run lint | |
# if: ${{ steps.files.outputs.python != '' }} | |
# run: pylint --errors-only ${{ steps.files.outputs.python }} | |
- name: Extract branch name | |
shell: bash | |
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | |
id: extract_branch | |
- name: Create tag | |
id: docker_tag | |
run: | | |
commit_tag=${GITHUB_REF#refs/*/} | |
echo "::set-output name=tag::${commit_tag}-${{ github.run_number }}" | |
- name: Verify tag | |
run: echo ${{ steps.docker_tag.outputs.tag }} | |
- name: Login to GCR | |
uses: docker/login-action@v1 | |
with: | |
registry: gcr.io | |
username: _json_key | |
password: ${{ secrets.GCR_JSON_KEY }} | |
- name: Build superset and push | |
# docker build -t gcr.io/plaidcloud-build/auth-service:latest --pull --build-arg PLAID_BUILD_TAG={tag} --no-cache . | |
id: docker_build | |
uses: docker/build-push-action@v2 | |
with: | |
push: true | |
pull: true | |
no-cache: true | |
build-args: | | |
PLAID_BUILD_TAG:${{ steps.docker_tag.outputs.tag }} | |
tags: gcr.io/plaidcloud-build/superset:latest,gcr.io/plaidcloud-build/superset:${{ steps.extract_branch.outputs.branch }}-${{ github.run_number }} | |
- name: Build events and push | |
id: docker_events_build | |
uses: docker/build-push-action@v2 | |
with: | |
push: true | |
pull: true | |
no-cache: true | |
build-args: | | |
PLAID_BUILD_TAG:${{ steps.docker_tag.outputs.tag }} | |
file: Dockerfile.events | |
tags: gcr.io/plaidcloud-build/superset-events:latest,gcr.io/plaidcloud-build/superset-events:${{ steps.extract_branch.outputs.branch }}-${{ github.run_number }} | |
- name: Deploy to Argo | |
uses: clowdhaus/argo-cd-action/@main | |
env: | |
ARGOCD_SERVER: deploy.plaidcloud.io | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This might not be needed - Mostly used to avoid rate limiting | |
ARGOCD_AUTH_TOKEN: ${{ secrets.ARGOCD_AUTH_TOKEN }} | |
with: | |
command: app | |
options: set beta-superset -p image.tag=${{ steps.extract_branch.outputs.branch }}-${{ github.run_number }} | |
- name: Deploy Events to Argo | |
uses: clowdhaus/argo-cd-action/@main | |
env: | |
ARGOCD_SERVER: deploy.plaidcloud.io | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This might not be needed - Mostly used to avoid rate limiting | |
ARGOCD_AUTH_TOKEN: ${{ secrets.ARGOCD_AUTH_TOKEN }} | |
with: | |
command: app | |
options: set beta-superset-events -p image.tag=${{ steps.extract_branch.outputs.branch }}-${{ github.run_number }} | |
- name: Set Events Repo for Superset | |
uses: clowdhaus/argo-cd-action/@main | |
env: | |
ARGOCD_SERVER: deploy.plaidcloud.io | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This might not be needed - Mostly used to avoid rate limiting | |
ARGOCD_AUTH_TOKEN: ${{ secrets.ARGOCD_AUTH_TOKEN }} | |
with: | |
command: app | |
options: set beta-superset -p events.repository=gcr.io/plaidcloud-build/superset-events:${{ steps.extract_branch.outputs.branch }}-${{ github.run_number }} |