Skip to content

Commit

Permalink
OpenVasp Phase 1 (#140)
Browse files Browse the repository at this point in the history
* refactored database code and added transfer model

* added transfer json structs

* initial work

* register cli command working

* more transfer work

* transfer work ready

* solved CI issue (I hope)

* solved other build issue

* initial implementation

* fixed transfer CLI issue

* refactoring

* added validation

* implemented inquiry resolution

* created list transfer endpoint

* implemented transfer confirmation

* fixed confirm issue

* transfer endpoints working

* lnurl decoding and comments

* added register helper endpoint commands to CLI

* helper endpoints working

* refactoring

* cleanup work

* CLI cleanup

* added documentation

* updates to transfer

* more comments

* removed ioutil

* fixed json decoding bug

* fixed bugs found in initial PR review

* initial work

* update

* 3rd times the charm

* 4th times the charm

* 5th times the charm

* url change

* refactoring before demo

* container updates

* add counterparty to docker compose

* updated transfer

* fixed txid flag issue

* beneficiary demo working

* beneficiary demo changes

* update cli

* db change

* db change

* updated db structs

* reverted db changes

* further fixes

* json cleanup

* endpoint update

* cli update

* updates for demo

* demo update

* more demo changes

* updated originator transfer

* updated originator transfer

---------

Co-authored-by: Patrick Deziel <deziel.patrick@gmail.com>
  • Loading branch information
Daniel Sollis and pdeziel authored Aug 28, 2023
1 parent 86f87a5 commit 92dc656
Show file tree
Hide file tree
Showing 11 changed files with 1,177 additions and 117 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,66 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
build-args: |
GIT_REVISION=${{ steps.vars.outputs.revision }}
openvasp:
name: openvasp
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Set Envrionment
id: vars
run: |
echo "::set-output name=tag::${GITHUB_REF#refs/*/}"
echo "::set-output name=revision::$(git rev-parse --short HEAD)"
- name: Docker Metadata
id: meta
uses: docker/metadata-action@v3
with:
images: |
trisa/openvasp
gcr.io/trisa-gds/openvasp
tags: |
type=semver,pattern={{raw}}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha,prefix=,suffix=,format=short
- name: Setup QEMU
uses: docker/setup-qemu-action@v1

- name: Setup Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1

- name: Login to DockerHub
if: github.event_name == 'pull_request'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to GCR
if: github.event_name == 'pull_request'
uses: docker/login-action@v1
with:
registry: gcr.io
username: _json_key
password: ${{ secrets.GCR_JSON_KEY }}

- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
# context and Dockerfile - should be configured for each image
context: .
file: ./containers/openvasp/Dockerfile
push: ${{ github.event_name == 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
GIT_REVISION=${{ steps.vars.outputs.revision }}
migrate:
name: migrate
runs-on: ubuntu-latest
Expand Down
Loading

0 comments on commit 92dc656

Please sign in to comment.