-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from opexdev/dev
Release v1.0.0-beta.1
- Loading branch information
Showing
9 changed files
with
41 additions
and
158 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,24 @@ | ||
name: Deploy OPEX-Nginx - Dev | ||
name: Push images on dev branch update | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
|
||
jobs: | ||
jenkinsJob: | ||
name: Build OPEX-Nginx new dev version | ||
runs-on: ubuntu-latest | ||
build: | ||
runs-on: ubuntu-20.04 | ||
name: Build NGINX | ||
steps: | ||
- name: Trigger opex-nginx-dev on jenkins | ||
uses: appleboy/jenkins-action@master | ||
- name: Checkout Source Code | ||
uses: actions/checkout@v2 | ||
- name: Build Docker images | ||
run: TAG=dev docker-compose build | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v1 | ||
with: | ||
url: ${{ secrets.JENKINS_URL }} | ||
user: ${{ secrets.JENKINS_USER }} | ||
token: ${{ secrets.JENKINS_TOKEN }} | ||
job: "opex-nginx-dev" | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Push images to GitHub Container Registry | ||
run: TAG=dev docker-compose push |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,24 @@ | ||
name: Deploy OPEX-Nginx - Demo | ||
name: Push images on main branch update | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
jenkinsJob: | ||
name: Deploy OPEX-Nginx new demo version | ||
runs-on: ubuntu-latest | ||
build: | ||
runs-on: ubuntu-20.04 | ||
name: Build NGINX | ||
steps: | ||
- name: Trigger opex-nginx-demo on jenkins | ||
uses: appleboy/jenkins-action@master | ||
- name: Checkout Source Code | ||
uses: actions/checkout@v2 | ||
- name: Build Docker images | ||
run: TAG=latest docker-compose build | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v1 | ||
with: | ||
url: ${{ secrets.JENKINS_URL }} | ||
user: ${{ secrets.JENKINS_USER }} | ||
token: ${{ secrets.JENKINS_TOKEN }} | ||
job: "opex-nginx-demo" | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Push images to GitHub Container Registry | ||
run: TAG=latest docker-compose push |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
FROM nginx:1.20.2 | ||
ADD nginx.conf opex.dev.crt private.pem /etc/nginx/ | ||
ADD nginx.conf /etc/nginx/ | ||
EXPOSE 443 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,5 @@ | ||
version: '3.8' | ||
services: | ||
nginx: | ||
image: ghcr.io/opexdev/nginx:$TAG | ||
build: . | ||
volumes: | ||
- www:/data/www | ||
networks: | ||
- default | ||
deploy: | ||
restart_policy: | ||
condition: on-failure | ||
volumes: | ||
www: | ||
external: false | ||
networks: | ||
default: | ||
driver: bridge | ||
name: ${DEFAULT_NETWORK_NAME:-opex} |
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