mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
* Log : move LOGGING_COMMIT_HASH * Build : pypi * Build : docker * Poetry : pyproject.toml * Docker : test cd * Docker : test cd * Docker : test cd * Docker : update cd * Docker : update workflow * Docker : remove script * Tests : loggers * Docker : workflow * Pypi : build script * Pypi : adding MANIFEST.in Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
43 lines
1.3 KiB
YAML
Vendored
43 lines
1.3 KiB
YAML
Vendored
name: Build and Publish Docker
|
|
|
|
on: workflow_dispatch
|
|
|
|
jobs:
|
|
publish-image:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
OPENBBTERMINAL_DOCKER_GITHUB_REPOSITORY: ${{ github.repository }}
|
|
OPENBB_LOGGING_APP_NAME: "gst_docker"
|
|
|
|
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Login to GitHub Container Registry
|
|
uses: docker/login-action@v2
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Setup commit hash
|
|
run: |
|
|
echo "OPENBB_LOGGING_COMMIT_HASH=sha:$(git rev-parse --short=8 "$GITHUB_SHA")" >> $GITHUB_ENV
|
|
|
|
- name: Build env file
|
|
run: |
|
|
echo "OPENBB_LOGGING_APP_NAME='${OPENBB_LOGGING_APP_NAME}'" > openbb_terminal/.env
|
|
echo "OPENBB_LOGGING_COMMIT_HASH='${OPENBB_LOGGING_COMMIT_HASH}'" >> openbb_terminal/.env
|
|
cat openbb_terminal/.env
|
|
|
|
- name: Building the Docker image
|
|
run: |
|
|
source docker/compose.env
|
|
source docker/build.sh
|
|
echo "OPENBBTERMINAL_DOCKER_POETRY_IMAGE=$OPENBBTERMINAL_DOCKER_POETRY_IMAGE" >> $GITHUB_ENV
|
|
|
|
- name: Publishing the Docker image
|
|
run: |
|
|
docker push "${OPENBBTERMINAL_DOCKER_POETRY_IMAGE}"
|