-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (30 loc) · 1.16 KB
/
publish-containerfiles.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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