Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 25 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ on:
- main

jobs:
build:
test:
runs-on: ubuntu-latest

steps:
- name: Clone repo to pipeline
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download python
- name: Download Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
Expand All @@ -30,16 +30,26 @@ jobs:
fi

- name: Run tests
run: echo "No tests available, skipping this step." # Bare erstatt med pytest inntil vider

- name: Build Docker image
run: docker build -t podblock:latest .

- name: Save Docker image
run: docker save podblock:latest -o podblock.tar
run: echo "No tests available, skipping this step." # erstatt med pytest kommando når vi har lagd tester

- name: Upload Docker image artifact
uses: actions/upload-artifact@v3
with:
name: podblock-docker-image
path: podblock.tar
build:
needs: test
runs-on: ubuntu-latest
steps:
- name: placeholder
run: echo "no-need-to-build-now"
# steps:
# - name: Clone repo to pipeline
# uses: actions/checkout@v4

# - name: Build Docker image
# run: docker build -t podblock:latest .

# - name: Save Docker image
# run: docker save podblock:latest -o podblock.tar

# - name: Upload Docker image artifact
# uses: actions/upload-artifact@v4
# with:
# name: podblock-docker-image
# path: podblock.tar