Skip to content

Commit

Permalink
added build
Browse files Browse the repository at this point in the history
  • Loading branch information
tsebastiani committed May 3, 2024
1 parent 950dfa4 commit 3802c68
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ permissions:
contents: write
jobs:
test:
name: Test
name: Execute Functional & Unit Tests
strategy:
matrix:
#python-version: [ '3.9', '3.10', 'pypy3.9' ]
python-version: [ '3.9' ]
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -62,6 +61,29 @@ jobs:
name: coverage
path: htmlcov
if-no-files-found: error
build-image:
name: Build and push container image
runs-on: ubuntu-latest
needs:
- test
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Build Docker image
run: |
docker build --no-cache -t quay.io/krkn-chaos/krkn-service-hijacking:latest .
docker tag quay.io/krkn-chaos/krkn-service-hijacking:latest quay.io/krkn-chaos/krkn-service-hijacking:${GITHUB_REF##*/}
- name: Login in quay
run: docker login quay.io -u ${QUAY_USER} -p ${QUAY_TOKEN}
env:
QUAY_USER: ${{ secrets.QUAY_USERNAME }}
QUAY_TOKEN: ${{ secrets.QUAY_PASSWORD }}
- name: Push Docker image
run: |
docker push quay.io/krkn-chaos/krkn-service-hijacking:latest
docker push quay.io/krkn-chaos/krkn-service-hijacking:${GITHUB_REF##*/}
# publish:
# name: Publish Library on PyPi
Expand Down

0 comments on commit 3802c68

Please sign in to comment.