ci: Update build.yml workflow
This commit is contained in:
parent
0e392af870
commit
84f2affad9
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
|
@ -158,6 +158,7 @@ jobs:
|
||||||
PKG_VERSION: ${{needs.prepare.outputs.pkg_version}}
|
PKG_VERSION: ${{needs.prepare.outputs.pkg_version}}
|
||||||
FROM_TAG: ${{needs.prepare.outputs.from_tag}}
|
FROM_TAG: ${{needs.prepare.outputs.from_tag}}
|
||||||
TO_TAG: ${{needs.prepare.outputs.to_tag}}
|
TO_TAG: ${{needs.prepare.outputs.to_tag}}
|
||||||
|
TARGET_BASE: ${{needs.prepare.outputs.base_image_version}}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -218,7 +219,7 @@ jobs:
|
||||||
SKIP_TESTS: ${{ github.event.inputs.skiptests }}
|
SKIP_TESTS: ${{ github.event.inputs.skiptests }}
|
||||||
DEBIAN_FRONTEND: noninteractive
|
DEBIAN_FRONTEND: noninteractive
|
||||||
BROWSERSLIST_IGNORE_OLD_DATA: 1
|
BROWSERSLIST_IGNORE_OLD_DATA: 1
|
||||||
TARGETBASE: ${{ needs.prepare.outputs.base_image_version }}
|
TARGET_BASE: ${{ env.TARGET_BASE }}
|
||||||
with:
|
with:
|
||||||
host: ${{ steps.azlaunch.outputs.ipaddr }}
|
host: ${{ steps.azlaunch.outputs.ipaddr }}
|
||||||
port: 22
|
port: 22
|
||||||
|
@ -329,7 +330,7 @@ jobs:
|
||||||
echo "=========================================================================="
|
echo "=========================================================================="
|
||||||
echo "Collecting statics..."
|
echo "Collecting statics..."
|
||||||
echo "=========================================================================="
|
echo "=========================================================================="
|
||||||
sudo docker run --rm --name collectstatics -v $(pwd):/workspace ghcr.io/ietf-tools/datatracker-app-base:$TARGETBASE sh dev/build/collectstatics.sh
|
sudo docker run --rm --name collectstatics -v $(pwd):/workspace ghcr.io/ietf-tools/datatracker-app-base:$TARGET_BASE sh dev/build/collectstatics.sh
|
||||||
echo "Pushing statics..."
|
echo "Pushing statics..."
|
||||||
cd static
|
cd static
|
||||||
aws s3 sync . s3://static/dt/$PKG_VERSION --only-show-errors
|
aws s3 sync . s3://static/dt/$PKG_VERSION --only-show-errors
|
||||||
|
|
Loading…
Reference in a new issue