Skip to content

Commit

Permalink
STS-189 test build and push frontend image
Browse files Browse the repository at this point in the history
  • Loading branch information
max402 committed Jul 3, 2024
1 parent ba5771a commit eedf26e
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,19 @@ jobs:
with:
name: artifacts

- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: dist

# TODO delete this step after successful testing
- name: Display structure of downloaded files
run: ls -R

- name: Get the tag name
run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
# temporarily
# run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
run: echo "TAG=v1.1.28" >> $GITHUB_ENV

- name: Build and push 'sts-example' docker image
uses: docker/build-push-action@v6
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: artifacts
name: dist
path: |
${{ github.workspace }}/**/dist
${{ github.workspace }}/sts-client-example/dist
${{ github.workspace }}/sts-client-example/docker/create_env.json.sh
overwrite: false
if-no-files-found: error
18 changes: 17 additions & 1 deletion .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ jobs:
- name: Step 3 - Build & Test
run: mvn clean verify -ntp

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: artifacts
path: |
${{ github.workspace }}/**/*.jar
${{ github.workspace }}/**/Dockerfile
overwrite: false
if-no-files-found: error

- name: Step 4 - Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
Expand All @@ -31,4 +41,10 @@ jobs:

build-frontend:
uses: ./.github/workflows/frontend.yml
secrets: inherit
secrets: inherit

# temporarily
dockerhub:
needs: [ build-java, build-frontend ]
uses: ./.github/workflows/dockerhub.yml
secrets: inherit

0 comments on commit eedf26e

Please sign in to comment.