forked from hpcc-systems/HPCC-Platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -425,5 +425,47 @@ jobs: | |
name: ${{ matrix.os }}-${{ matrix.ln }}-${{ matrix.container }}-${{ matrix.documentation }}-logs | ||
path: ${{ needs.preamble.outputs.folder_build }}/**/*.log | ||
|
||
run-package-manifest: | ||
needs: build-docker | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Determine Tag | ||
id: determine_tag | ||
run: | | ||
if [ "${{ github.ref }}" == "refs/tags/"* ]; then | ||
echo "TAG=${{ github.ref }}" | sed 's/refs\/tags\///' >> $GITHUB_ENV | ||
else | ||
echo "No tag found." | ||
exit 1 | ||
fi | ||
- name: Print determined tag | ||
run: echo "Determined tag is ${{ env.TAG }}" | ||
|
||
- name: Pull Docker Image | ||
run: docker pull ${{ secrets.DOCKER_USERNAME }}/package-manifest:latest | ||
|
||
- name: Run Docker Container | ||
run: docker run --name package-container -e REPO_OWNER=${{ github.repository_owner }} -e REPO_NAME=HPCC-Platform -e TAG=${{ env.TAG }} ${{ secrets.DOCKER_USERNAME }}/package-manifest:latest | ||
|
||
- name: Fetch Output from Container | ||
run: docker cp package-container:/app/output.json ${{ github.workspace }}/output.json | ||
|
||
- name: Upload output.json to GitHub Release | ||
uses: ncipollo/[email protected] | ||
with: | ||
allowUpdates: true | ||
generateReleaseNotes: false | ||
prerelease: ${{ contains(github.ref, '-rc') }} | ||
artifacts: ${{ github.workspace }}/output.json | ||
token: ${{ secrets.LNB_TOKEN }} | ||
|