Skip to content

Commit

Permalink
Make different versions with action vars
Browse files Browse the repository at this point in the history
  • Loading branch information
nothingface0 committed Nov 17, 2023
1 parent 2b78721 commit 4a9372d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
32 changes: 26 additions & 6 deletions .github/workflows/build_installation_package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,17 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Download and compress dependencies
env:
DMWM_GIT_TAG: ${{ env.DMWM_GIT_TAG }}
DMWM_GIT_URL: ${{ env.DMWM_GIT_URL }}
DQMGUI_GIT_TAG: ${{ env.DQMGUI_GIT_TAG }}
DQMGUI_GIT_URL: ${{ env.DQMGUI_GIT_URL }}
ROOT_GIT_URL: ${{ env.DQMGUI_GIT_TAG }}
ROOT_GIT_TAG: ${{ env.DQMGUI_GIT_URL }}
run: |
sudo apt update && sudo apt install -y libcurl4-gnutls-dev
$(which python3) --version
bash download_dependencies.sh
bash download_dependencies.sh DMWM_GIT_TAG=$DMWM_GIT_TAG DMWM_GIT_URL=$DMWM_GIT_URL DQMGUI_GIT_TAG=$DQMGUI_GIT_TAG ROOT_GIT_URL=$ROOT_GIT_URL ROOT_GIT_TAG=$ROOT_GIT_TAG
bash build_installation_package.sh
- name: Archive package artifact
uses: actions/upload-artifact@v3
Expand All @@ -27,14 +34,27 @@ jobs:
# This will automatically update the artifacts of the "latest" release,
# even though the "latest" tag does match with the actually latest commit.
- name: Release
env:
DMWM_GIT_TAG: ${{ env.DMWM_GIT_TAG }}
DMWM_GIT_URL: ${{ env.DMWM_GIT_URL }}
DQMGUI_GIT_TAG: ${{ env.DQMGUI_GIT_TAG }}
DQMGUI_GIT_URL: ${{ env.DQMGUI_GIT_URL }}
ROOT_GIT_URL: ${{ env.DQMGUI_GIT_TAG }}
ROOT_GIT_TAG: ${{ env.DQMGUI_GIT_URL }}
uses: ncipollo/release-action@v1
with:
artifacts: "/tmp/dqmgui/dqmgui_installation_package.tar.gz"
body:
"Automatically generated dummy release for making the installation
package publicly available. The `latest` tag is
put on a random commit, and does not reflect the current state of the release,
while the artifact of this release is updated with the actually latest files,
on each push."
tag: "latest"
package publicly available.
Used:
* DMWM_GIT_TAG=$DMWM_GIT_TAG
* DMWM_GIT_URL=$DMWM_GIT_URL
* DQMGUI_GIT_TAG=$DQMGUI_GIT_TAG
* ROOT_GIT_URL=$ROOT_GIT_URL
* ROOT_GIT_TAG=$ROOT_GIT_TAG
"
tag: "DMWM_$DMWM_GIT_TAG_DQMGUI=$DQMGUI_GIT_TAG_ROOT_$ROOT_GIT_TAG"
allowUpdates: "true"
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ This procedure has been tested on a RHEL8 Openstack VM. Instructions below are p
```
OR
* Download all the required files yourself (this is useful if you need specific versions of DMQM/deployment or DQMGUI, change them in `config.sh`):
> **Warning**
> You will need to have the same python version with the machine you rill be installing to! Configure that in `config.sh`, with the `PYTHON_VERSION` variable.
```bash
git clone --depth 1 https://github.com/cms-DQM/dqmgui_prod_deployment && cd dqmgui_prod_deployment
# Now change config.sh as needed.
Expand Down

0 comments on commit 4a9372d

Please sign in to comment.