Skip to content

Commit

Permalink
feat: publish docker images workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgrittner committed Aug 19, 2024
1 parent c5984e8 commit 58f8cd6
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 16 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/publish-docker-images.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# TODO: WIP
name: Publish Docker Images
on:
workflow_call:
Expand All @@ -13,12 +12,20 @@ on:
default: ""
jobs:
publish-to-docker-hub:
name: Unit Tests
name: Publish Docker Images
runs-on: ${{ inputs.os }}
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
repository: ${{ github.repository }}
ref: ${{ github.event.pull_request.head.sha }}
# TODO: docker build + docker push => execute release_images.sh
uses: actions/checkout@v2
with:
repository: ${{ github.repository }}
ref: ${{ github.event.pull_request.head.sha }}
- name: Login to docker hub
uses: actions-hub/docker/login@master
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
- name: Use Docker CLI
uses: actions-hub/docker/cli@master
- name: Build and push Docker images
run: cd docker && ./release_images.sh
13 changes: 6 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ jobs:
# - setup-and-test
# uses: ./.github/workflows/publish-to-pypi.yml
# secrets: inherit
# TODO: WIP
# publish-docker-images:
# if: github.repository == 'Admyral-Security/admyral'
# needs:
# - setup-and-test
# uses: ./.github/workflows/publish-docker-images.yml
# secrets: inherit
publish-docker-images:
if: github.repository == 'Admyral-Security/admyral'
needs:
- setup-and-test
uses: ./.github/workflows/publish-docker-images.yml
secrets: inherit
5 changes: 3 additions & 2 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,6 @@ jobs:
run: cd web && pnpm prettier:check
- name: Run build
run: cd web && pnpm build
- name: Run unit tests
run: cd web && pnpm test
# TODO: activate when tests are available
# - name: Run unit tests
# run: cd web && pnpm test

0 comments on commit 58f8cd6

Please sign in to comment.