Add DUB to LDC v0.17.6 #42
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
name: Publish Containerfiles | |
on: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
publish-containerfiles: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Setup Git" | |
env: | |
SSH_KEY_64: ${{ secrets.CONTAINERFILES_SSH_KEY_64 }} | |
run: | | |
mkdir -p ~/.ssh | |
echo $SSH_KEY_64 | base64 --decode > ~/.ssh/id_gh | |
chmod 600 ~/.ssh/id_gh | |
echo -e "Host github.com\n\tIdentityFile=%d/.ssh/id_gh" >> ~/.ssh/config | |
git config --global user.name "dlang-dockerizer" | |
git config --global user.email "[email protected]" | |
- name: "Generate Containerfiles" | |
run: ./ddct generate-all | |
- name: "Clone public Containerfiles" | |
run: git clone --depth=1 --branch=dlang-rox '[email protected]:dlang-dockerized/containerfiles.git' ~/containerfiles | |
- name: Sync Containerfiles repo | |
run: | | |
rsync -av --delete ./containerfiles/ ~/containerfiles/containerfiles | |
rsync -av --delete ./resources/ ~/containerfiles/resources | |
- name: "Publish updated Containerfiles" | |
run: ./tools/publish-containerfiles-ci.sh |