Skip to content

Commit

Permalink
POS-6 Dockworker 6.x upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobSanford committed Aug 30, 2024
1 parent 63c442e commit d5da72b
Show file tree
Hide file tree
Showing 7 changed files with 77 additions and 323 deletions.
142 changes: 0 additions & 142 deletions .dockworker/deployment/k8s/dev/deployment.yaml

This file was deleted.

142 changes: 0 additions & 142 deletions .dockworker/deployment/k8s/prod/deployment.yaml

This file was deleted.

73 changes: 50 additions & 23 deletions .dockworker/dockworker.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,54 @@
dockworker:
version: '5'
version: '6'
application:
name: pos.lib.unb.ca
finish_marker: 99_z_notify_user_URI
project_prefix: POS
upstream_images:
- ghcr.io/unb-libraries/nginx-php:1.x-7.x
- mariadb:10.3
uuid: 3103
deployment:
environments:
name: POS application for UNB Libraries.
uri: https://pos.lib.unb.ca
description: >
A Point of Sale (POS) application for use in University of New Brunswick Libraries.
topics:
- pos
identifiers:
id: pos.lib.unb.ca
slug: pos-lib-unb-ca
short_slug: pos
uuid: 3103
framework:
name: ospos
version: 3
startup_finished_marker: '99_startup_sequence_complete'
endpoint:
name: http
port: 80
readiness_timeout: 15
license:
license: MIT
holder: University of New Brunswick Libraries
shell:
path: /bin/sh
endpoints:
env:
- dev
- prod
workflow:
source: dockworker
type: deployment-workflow
github:
repo: pos.lib.unb.ca
owner: unb-libraries
image:
push_branches:
- dev
- prod
name: ghcr.io/unb-libraries/pos.lib.unb.ca
date_tag_image: true
repository: ghcr
deployments:
pos-lib-unb-ca:
default: true
managed: true
name: pos.lib.unb.ca
ospos-mysql-lib-unb-ca:
managed: false
name: mysql
workflows:
vcs:
type: github
owner: unb-libraries
name: pos.lib.unb.ca
jira:
project_keys:
- POS
image:
name: ghcr.io/unb-libraries/pos.lib.unb.ca
parent: ghcr.io/unb-libraries/nginx-php:3.18.x
repository: GitHub
push-branches:
- dev
- prod
19 changes: 10 additions & 9 deletions .github/workflows/deployment-workflow.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: pos.lib.unb.ca
name: Deploy pos.lib.unb.ca

on:
pull_request:
Expand All @@ -7,15 +7,16 @@ on:

jobs:
deploy:
uses: unb-libraries/dockworker/.github/workflows/deployment-workflow.yaml@5.x
uses: unb-libraries/dockworker/.github/workflows/build-push-deploy-notify.yaml@6.x
with:
branch-env-map: '{"dev":"dev","prod":"prod"}'
build-themes: false
deploy-branches: '["dev","prod"]'
image-name: 'ghcr.io/unb-libraries/pos.lib.unb.ca'
k8s-deployment-name: 'pos-lib-unb-ca'
push-branches: '["dev","prod"]'
secrets:
DOCKER_CLOUD_ACCESS_TOKEN: ${{ secrets.DOCKER_CLOUD_ACCESS_TOKEN }}
DOCKER_CLOUD_USER_NAME: ${{ secrets.DOCKER_CLOUD_USER_NAME }}
GH_CONTAINER_REGISTRY_TOKEN: ${{ secrets.GH_CONTAINER_REGISTRY_TOKEN }}
GH_CONTAINER_REGISTRY_USER: ${{ secrets.GH_CONTAINER_REGISTRY_USER }}
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA }}
NEW_RELIC_ACCOUNT_ID: ${{ secrets.NEW_RELIC_ACCOUNT_ID }}
NEW_RELIC_API_KEY: ${{ secrets.NEW_RELIC_API_KEY }}
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG_DATA }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
GH_CONTAINER_REGISTRY_USER: ${{ secrets.GH_CONTAINER_REGISTRY_USER }}
GH_CONTAINER_REGISTRY_TOKEN: ${{ secrets.GH_CONTAINER_REGISTRY_TOKEN }}
Loading

0 comments on commit d5da72b

Please sign in to comment.