Skip to content

Commit 6567019

Browse files
committed
Adapted docker.yml
1 parent 676eddd commit 6567019

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/docker.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
-
2323
name: Check out
2424
uses: actions/checkout@v4
25+
path: etherpad
2526
-
2627
name: Set up QEMU
2728
if: github.event_name == 'push'
@@ -62,6 +63,7 @@ jobs:
6263
${{ runner.os }}-pnpm-store-
6364
-
6465
name: Test
66+
path: etherpad
6567
run: |
6668
docker run --rm -d -p 9001:9001 --name test ${{ env.TEST_TAG }}
6769
./bin/installDeps.sh
@@ -82,6 +84,7 @@ jobs:
8284
if: github.event_name == 'push'
8385
id: meta
8486
uses: docker/metadata-action@v5
87+
path: etherpad
8588
with:
8689
images: etherpad/etherpad
8790
tags: |
@@ -92,13 +95,15 @@ jobs:
9295
-
9396
name: Log in to Docker Hub
9497
if: github.event_name == 'push'
98+
path: etherpad
9599
uses: docker/login-action@v3
96100
with:
97101
username: ${{ secrets.DOCKERHUB_USERNAME }}
98102
password: ${{ secrets.DOCKERHUB_TOKEN }}
99103
-
100104
name: Build and push
101105
if: github.event_name == 'push'
106+
path: etherpad
102107
uses: docker/build-push-action@v6
103108
with:
104109
context: .
@@ -109,9 +114,30 @@ jobs:
109114
labels: ${{ steps.meta.outputs.labels }}
110115
- name: Update repo description
111116
uses: peter-evans/dockerhub-description@v4
117+
path: etherpad
112118
if: github.ref == 'refs/heads/master'
113119
with:
114120
username: ${{ secrets.DOCKERHUB_USERNAME }}
115121
password: ${{ secrets.DOCKERHUB_TOKEN }}
116122
repository: etherpad/etherpad
117123
enable-url-completion: true
124+
- name: Check out
125+
uses: actions/checkout@v4
126+
path: ether-charts
127+
with:
128+
repository: https://github.com/ether/ether-charts
129+
token: ${{ secrets.GITHUB_TOKEN }}
130+
- name: Update tag in values-dev.yaml
131+
#if: github.event == 'push' && github.ref == 'refs/heads/develop'
132+
path: ether-charts
133+
run: |
134+
sed -i 's/tag: ".*"/tag: "${{ steps.meta.outputs.sha }}"/' values-dev.yaml
135+
- name: Commit and push changes
136+
path: ether-charts
137+
#if: github.event == 'push' && github.ref == 'refs/heads/develop'
138+
run: |
139+
git config --global user.name 'github-actions[bot]'
140+
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
141+
git add values-dev.yaml
142+
git commit -m 'Update develop image tag'
143+
git push

0 commit comments

Comments
 (0)