Skip to content

feat(http): remove CORS regex #50

feat(http): remove CORS regex

feat(http): remove CORS regex #50

name: build & deploy in dev
on:
push:
branches: ["develop", "master"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
uses: actions/checkout@v2
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build and push to bridgekw
uses: docker/build-push-action@v2
with:
context: ./
file: ./Dockerfile
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/bridge-dev:${{ github.sha }}
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: production
steps:
- uses: actions/checkout@master
- name: Updates drive cluster image
uses: steebchen/[email protected]
with: # defaults to latest kubectl binary version
config: ${{ secrets.KUBE_CONFIG_DATA_DEVELOPMENT }}
command: set image --record deployment/bridge-api-dev bridge-api-dev=${{ secrets.DOCKERHUB_USERNAME }}/bridge-dev:${{ github.sha }}
- name: Verify deployment
uses: steebchen/[email protected]
with:
config: ${{ secrets.KUBE_CONFIG_DATA_DEVELOPMENT }}
version: v1.20.2 # specify kubectl binary version explicitly
command: rollout status deployment/bridge-api-dev