Skip to content

Commit

Permalink
no repo releases
Browse files Browse the repository at this point in the history
  • Loading branch information
HenriWahl committed May 28, 2024
1 parent f50da5e commit 7300c23
Showing 1 changed file with 68 additions and 68 deletions.
136 changes: 68 additions & 68 deletions .github/workflows/build-release-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,74 +55,74 @@ jobs:
path: ./*.rpm
retention-days: 1

repo-debian:
runs-on: ubuntu-latest
needs: [build-debian]
env:
dist: debian
steps:
- uses: actions/checkout@v2
# get binaries created by other jobs
- uses: actions/download-artifact@v2
# build container image for repo packaging, using the same as for building
- run: /usr/bin/docker build -t ${{ github.job }} -f build/Dockerfile-${{ env.dist }} .
# make entrypoints executable
- run: chmod +x build/entrypoint-*.sh
# get secret signing key
- run: echo "${{ secrets.DHCPY6D_SIGNING_KEY }}" > signing_key.asc
# organize SSH deploy key for dhcp6d-jekyll repo
- run: mkdir ~/.ssh
- run: echo "${{ secrets.DHCPY6D_REPO_SSH_KEY }}" > ~/.ssh/id_ed25519
- run: chmod -R go-rwx ~/.ssh
# get and prepare dhcpy6d-jekyll
- run: git clone [email protected]:HenriWahl/dhcpy6d-jekyll.git
- run: rm -rf ${{ env.repo_dir }}/${{ env.release }}/${{ env.dist }}
- run: mkdir -p ${{ env.repo_dir }}/${{ env.release }}/${{ env.dist }}
# execute container with matching entrypoint
- run: |
/usr/bin/docker run --volume ${{ github.workspace }}:/dhcpy6d \
--volume ${{ github.workspace }}/build/entrypoint-${{ github.job }}.sh:/entrypoint.sh \
--entrypoint /entrypoint.sh \
--env RELEASE=${{ env.release }} \
${{ github.job }}
# commit and push new binaries to dhcpyd-jekyll
- run: git config --global user.email "[email protected]" && git config --global user.name "Dhcpy6d Repository"
- run: cd ${{ env.repo_dir }} && git add . && git commit -am "new ${{ env.release }} repo ${{ env.dist }}" && git push

repo-centos:
runs-on: ubuntu-latest
# has to wait for repo-debian to avoid parallel processing of git repo dhcpy6d-jekyll
needs: [build-centos, repo-debian]
env:
dist: centos
steps:
- uses: actions/checkout@v2
# get binaries created by other jobs
- uses: actions/download-artifact@v2
# build container image for repo packaging, using the same as for building
- run: /usr/bin/docker build -t ${{ github.job }} -f build/Dockerfile-${{ env.dist }} .
# make entrypoints executable
- run: chmod +x build/entrypoint-*.sh
# get secret signing key
- run: echo "${{ secrets.DHCPY6D_SIGNING_KEY }}" > signing_key.asc
# organize SSH deploy key for dhcp6d-jekyll repo
- run: mkdir ~/.ssh
- run: echo "${{ secrets.DHCPY6D_REPO_SSH_KEY }}" > ~/.ssh/id_ed25519
- run: chmod -R go-rwx ~/.ssh
# get and prepare dhcpy6d-jekyll
- run: git clone [email protected]:HenriWahl/dhcpy6d-jekyll.git
- run: rm -rf ${{ env.repo_dir }}/${{ env.release }}/${{ env.dist }}
- run: mkdir -p ${{ env.repo_dir }}/${{ env.release }}/${{ env.dist }}
# execute container with matching entrypoint
- run: |
/usr/bin/docker run --volume ${{ github.workspace }}:/dhcpy6d \
--volume ${{ github.workspace }}/build/entrypoint-${{ github.job }}.sh:/entrypoint.sh \
--entrypoint /entrypoint.sh \
--env RELEASE=${{ env.release }} \
${{ github.job }}
# commit and push new binaries to dhcpyd-jekyll
- run: git config --global user.email "[email protected]" && git config --global user.name "Dhcpy6d Repository"
- run: cd ${{ env.repo_dir }} && git add . && git commit -am "new ${{ env.release }} repo ${{ env.dist }}" && git push
# repo-debian:
# runs-on: ubuntu-latest
# needs: [build-debian]
# env:
# dist: debian
# steps:
# - uses: actions/checkout@v2
# # get binaries created by other jobs
# - uses: actions/download-artifact@v2
# # build container image for repo packaging, using the same as for building
# - run: /usr/bin/docker build -t ${{ github.job }} -f build/Dockerfile-${{ env.dist }} .
# # make entrypoints executable
# - run: chmod +x build/entrypoint-*.sh
# # get secret signing key
# - run: echo "${{ secrets.DHCPY6D_SIGNING_KEY }}" > signing_key.asc
# # organize SSH deploy key for dhcp6d-jekyll repo
# - run: mkdir ~/.ssh
# - run: echo "${{ secrets.DHCPY6D_REPO_SSH_KEY }}" > ~/.ssh/id_ed25519
# - run: chmod -R go-rwx ~/.ssh
# # get and prepare dhcpy6d-jekyll
# - run: git clone [email protected]:HenriWahl/dhcpy6d-jekyll.git
# - run: rm -rf ${{ env.repo_dir }}/${{ env.release }}/${{ env.dist }}
# - run: mkdir -p ${{ env.repo_dir }}/${{ env.release }}/${{ env.dist }}
# # execute container with matching entrypoint
# - run: |
# /usr/bin/docker run --volume ${{ github.workspace }}:/dhcpy6d \
# --volume ${{ github.workspace }}/build/entrypoint-${{ github.job }}.sh:/entrypoint.sh \
# --entrypoint /entrypoint.sh \
# --env RELEASE=${{ env.release }} \
# ${{ github.job }}
# # commit and push new binaries to dhcpyd-jekyll
# - run: git config --global user.email "[email protected]" && git config --global user.name "Dhcpy6d Repository"
# - run: cd ${{ env.repo_dir }} && git add . && git commit -am "new ${{ env.release }} repo ${{ env.dist }}" && git push
#
# repo-centos:
# runs-on: ubuntu-latest
# # has to wait for repo-debian to avoid parallel processing of git repo dhcpy6d-jekyll
# needs: [build-centos, repo-debian]
# env:
# dist: centos
# steps:
# - uses: actions/checkout@v2
# # get binaries created by other jobs
# - uses: actions/download-artifact@v2
# # build container image for repo packaging, using the same as for building
# - run: /usr/bin/docker build -t ${{ github.job }} -f build/Dockerfile-${{ env.dist }} .
# # make entrypoints executable
# - run: chmod +x build/entrypoint-*.sh
# # get secret signing key
# - run: echo "${{ secrets.DHCPY6D_SIGNING_KEY }}" > signing_key.asc
# # organize SSH deploy key for dhcp6d-jekyll repo
# - run: mkdir ~/.ssh
# - run: echo "${{ secrets.DHCPY6D_REPO_SSH_KEY }}" > ~/.ssh/id_ed25519
# - run: chmod -R go-rwx ~/.ssh
# # get and prepare dhcpy6d-jekyll
# - run: git clone [email protected]:HenriWahl/dhcpy6d-jekyll.git
# - run: rm -rf ${{ env.repo_dir }}/${{ env.release }}/${{ env.dist }}
# - run: mkdir -p ${{ env.repo_dir }}/${{ env.release }}/${{ env.dist }}
# # execute container with matching entrypoint
# - run: |
# /usr/bin/docker run --volume ${{ github.workspace }}:/dhcpy6d \
# --volume ${{ github.workspace }}/build/entrypoint-${{ github.job }}.sh:/entrypoint.sh \
# --entrypoint /entrypoint.sh \
# --env RELEASE=${{ env.release }} \
# ${{ github.job }}
# # commit and push new binaries to dhcpyd-jekyll
# - run: git config --global user.email "[email protected]" && git config --global user.name "Dhcpy6d Repository"
# - run: cd ${{ env.repo_dir }} && git add . && git commit -am "new ${{ env.release }} repo ${{ env.dist }}" && git push

github-release:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 7300c23

Please sign in to comment.