-
-
Notifications
You must be signed in to change notification settings - Fork 62
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 #14 from covidpass-org/dev
Merge development version into main
- Loading branch information
Showing
9 changed files
with
155 additions
and
105 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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: Publish | ||
on: | ||
push: | ||
branches: | ||
- '**' | ||
tags: | ||
- 'v*.*.*' | ||
pull_request: | ||
|
||
jobs: | ||
build-and-push: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Docker meta | ||
id: meta | ||
uses: docker/metadata-action@v3 | ||
with: | ||
# list of Docker images to use as base name for tags | ||
images: ghcr.io/covidpass-org/covidpass | ||
# generate Docker tags based on the following events/attributes | ||
tags: | | ||
type=schedule | ||
type=edge,branch=dev | ||
type=ref,event=branch | ||
type=ref,event=pr | ||
type=semver,pattern={{version}} | ||
type=semver,pattern={{major}}.{{minor}} | ||
type=semver,pattern={{major}} | ||
type=sha | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Build and push | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: ./Dockerfile | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
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
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
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export default function handler(req, res) { | ||
// Return the API_BASE_URL. This Endpoint allows us to access the env Variable in client javascript | ||
res.status(200).json({ apiBaseUrl: process.env.API_BASE_URL }) | ||
} |
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
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,19 @@ | ||
exports.BASE_URL = 'https://raw.githubusercontent.com/ehn-dcc-development/ehn-dcc-valuesets/main/' | ||
exports.API_BASE_URL = 'https://api.covidpass.marvinsextro.de/' | ||
exports.VALUE_SET_BASE_URL = 'https://raw.githubusercontent.com/ehn-dcc-development/ehn-dcc-valuesets/main/' | ||
exports.VALUE_TYPES = { | ||
medicalProducts: 'vaccine-medicinal-product.json', | ||
countryCodes: 'country-2-codes.json', | ||
manufacturers: 'vaccine-mah-manf.json', | ||
medicalProducts: 'vaccine-medicinal-product.json', | ||
countryCodes: 'country-2-codes.json', | ||
manufacturers: 'vaccine-mah-manf.json', | ||
} | ||
exports.COLORS = { | ||
white: 'rgb(255, 255, 255)', | ||
black: 'rgb(0, 0, 0)', | ||
grey: 'rgb(33, 33, 33)', | ||
green: 'rgb(27, 94, 32)', | ||
indigo: 'rgb(26, 35, 126)', | ||
blue: 'rgb(1, 87, 155)', | ||
purple: 'rgb(74, 20, 140)', | ||
teal: 'rgb(0, 77, 64)', | ||
white: 'rgb(255, 255, 255)', | ||
black: 'rgb(0, 0, 0)', | ||
grey: 'rgb(33, 33, 33)', | ||
green: 'rgb(27, 94, 32)', | ||
indigo: 'rgb(26, 35, 126)', | ||
blue: 'rgb(1, 87, 155)', | ||
purple: 'rgb(74, 20, 140)', | ||
teal: 'rgb(0, 77, 64)', | ||
} | ||
exports.NAME = 'CovidPass' | ||
exports.PASS_IDENTIFIER = 'pass.de.marvinsextro.covidpass' // WELL KNOWN | ||
exports.TEAM_IDENTIFIER = 'X8Q7Q2RLTD' // WELL KNOWN |
Oops, something went wrong.