Skip to content

Commit

Permalink
added docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Becker committed Jun 11, 2024
1 parent acbee3c commit 2c32253
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ on:
push:
branches:
- '*'
pull_request:
branches:
- '*'

jobs:
pre-feature-pipeline:
sync-trello-pre-feature-branch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -27,6 +31,7 @@ jobs:
TRELLO_BOARD_ID: ${{ secrets.TRELLO_BOARD_ID }}
TRELLO_API_KEY: ${{ secrets.TRELLO_API_KEY }}
TRELLO_API_TOKEN: ${{ secrets.TRELLO_API_TOKEN }}
if: ${{ github.event_name }} == "push"

build:
runs-on: ubuntu-latest
Expand All @@ -51,6 +56,7 @@ jobs:
# name: docker-image-${{ github.event.head_commit.id }}
# path: docker-image-${{ github.event.head_commit.id }}.tar
needs: pre-feature-pipeline
if: ${{ github.event_name }} == "push"

unittest:
runs-on: ubuntu-latest
Expand All @@ -74,3 +80,29 @@ jobs:
name: pytest-results
path: results.xml
needs: build
if: ${{ github.event_name }} == "push"

sync-trello-feature-branch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip3 install requests
- name: Run Python script
run: python3 pipeline/pipeline.py --step intra_feature_branch
env:
GH_COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
GH_COMMIT_HASH: ${{ github.event.head_commit.id }}
GH_COMMIT_LINK_URL: ${{ github.event.head_commit.url }}
GH_FULL_NAME: ${{ github.event.repository.full_name }}
GH_PROJECT_URL: ${{ github.event.repository.html_url }}
TRELLO_BOARD_ID: ${{ secrets.TRELLO_BOARD_ID }}
TRELLO_API_KEY: ${{ secrets.TRELLO_API_KEY }}
TRELLO_API_TOKEN: ${{ secrets.TRELLO_API_TOKEN }}
needs: unittest
if: ${{ github.event_name }} == "push"

0 comments on commit 2c32253

Please sign in to comment.