Skip to content

Commit

Permalink
additional nginx build for non-epa kube deploys
Browse files Browse the repository at this point in the history
  • Loading branch information
popenc committed Aug 21, 2023
1 parent fdf04e7 commit c420a5c
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/docker-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,39 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
build-args: config=nginx.conf

build-nginx-dev:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
needs: build-angular
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Log in to the Container registry
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.NGINX_IMAGE }}

- name: Build and push Cyanweb Nginx Docker image
uses: docker/build-push-action@v2
with:
context: .
file: docker/nginx/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: config=nginx-dev.conf

build-redis:
runs-on: ubuntu-latest
permissions:
Expand Down
8 changes: 6 additions & 2 deletions docker/nginx/nginx-dev.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
############################################
# Nginx for cyanweb dev/non-epa kube stack #
############################################

upstream cyanweb_flask {
server cyanweb-flask:5001;
}
Expand All @@ -15,12 +19,12 @@ server {

# Cyano Backend API
location /cyanweb/cyan/cyano {
proxy_pass https://ceamdev.ceeopdev.net/cyan/cyano;
proxy_pass https://cyan.epa.gov/cyan/cyano;
}

# Cyan-waterbody Backend API
location /cyanweb/waterbody {
proxy_pass https://ceamdev.ceeopdev.net/waterbody;
proxy_pass https://cyan.epa.gov/waterbody;
}

# Cyanweb - prevents env.json caching:
Expand Down

0 comments on commit c420a5c

Please sign in to comment.