Skip to content

Commit

Permalink
Upgraded to ubuntu:24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
rweisse committed May 14, 2024
1 parent f8494b5 commit cac5423
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -255,11 +255,11 @@ jobs:
- name: Trigger BUILD_Propti build
if: env.BUILD_Propti == 'true'
env:
TOKEN: ${{ secrets.DISPATCH_WORKFLOWS_PRIVATE_BCL_TOKEN }}
ORG: brandschutzconsult
REPO: propti-dockerfiles
TOKEN: ${{ secrets.DISPATCH_WORKFLOWS_PROPTI_TRISTAN_HEHNEN }}
ORG: FireDynamics
REPO: propti
run: |
curl -L -X POST -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" \
-H "Authorization: Bearer ${TOKEN}" \
https://api.github.com/repos/${ORG}/${REPO}/actions/workflows/${{ needs.prepare-build.outputs.WORKFLOW_ID }}/dispatches \
-d "{\"ref\":\"main\",\"inputs\": {\"tag\": \"${{ needs.prepare-build.outputs.TAG }}\"}}"
-d "{\"ref\":\"master\",\"inputs\": {\"tag\": \"${{ needs.prepare-build.outputs.TAG }}\"}}"
21 changes: 18 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,30 @@ jobs:
git push origin --delete ${BRANCH}
done
fi
- name: Create new branch
- name: Extract productive branch
continue-on-error: true
run: |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
BRANCH=${{ github.ref_name }}
NEW_BRANCH=$(echo ${BRANCH#test/} | grep -oEi "(nightly-)?[0-9]+\.[0-9]+\.[0-9]+")
echo "NEW_BRANCH=${NEW_BRANCH}" >> $GITHUB_ENV
git switch -c ${NEW_BRANCH}
git push --set-upstream origin ${NEW_BRANCH}
echo "CREATE_NEW_BRANCH=true" >> $GITHUB_ENV
git fetch
git stash
git switch ${NEW_BRANCH}
echo "CREATE_NEW_BRANCH=false" >> $GITHUB_ENV
- name: Push to branch
run: |
if [[ ${{ env.CREATE_NEW_BRANCH }} == false ]]
then
git pull --unshallow
git merge -X theirs ${{ github.ref_name }}
git push
else
git switch -c ${{ env.NEW_BRANCH }}
git push --set-upstream origin ${{ env.NEW_BRANCH }}
fi
- name: Trigger Deploy
run: |
curl -L -X POST -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" \
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN chmod +x /root/*.sh && \
#####################
# Copy FDS binaries #
#####################
FROM ubuntu:22.04
FROM ubuntu:24.04
# set environment variables
ENV FDSBINDIR=/root/FDS
ENV impihome=$FDSBINDIR/INTEL
Expand Down

0 comments on commit cac5423

Please sign in to comment.