Skip to content

Install curl properly (incl. dev lib(s) and symlinks) #37

Install curl properly (incl. dev lib(s) and symlinks)

Install curl properly (incl. dev lib(s) and symlinks) #37

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 "175454113+dlang-dockerizer@users.noreply.github.com"
- name: "Generate Containerfiles"
run: ./ddct generate-all
- name: "Clone public Containerfiles"
run: git clone --depth=1 --branch=dlang-rox 'git@github.com: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