Skip to content

Commit f5e3888

Browse files
authored
Update docker.yml
1 parent 2d4d7bb commit f5e3888

1 file changed

Lines changed: 10 additions & 11 deletions

File tree

.github/workflows/docker.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ jobs:
2323
-
2424
name: Check out
2525
uses: actions/checkout@v4
26-
path: etherpad
26+
with:
27+
path: etherpad
28+
2729
-
2830
name: Set up QEMU
2931
if: github.event_name == 'push'
@@ -35,7 +37,7 @@ jobs:
3537
name: Build and export to Docker
3638
uses: docker/build-push-action@v6
3739
with:
38-
context: .
40+
context: ./etherpad
3941
target: production
4042
load: true
4143
tags: ${{ env.TEST_TAG }}
@@ -64,7 +66,7 @@ jobs:
6466
${{ runner.os }}-pnpm-store-
6567
-
6668
name: Test
67-
path: etherpad
69+
working-directory: etherpad
6870
run: |
6971
docker run --rm -d -p 9001:9001 --name test ${{ env.TEST_TAG }}
7072
./bin/installDeps.sh
@@ -85,7 +87,6 @@ jobs:
8587
if: github.event_name == 'push'
8688
id: meta
8789
uses: docker/metadata-action@v5
88-
path: etherpad
8990
with:
9091
images: etherpad/etherpad
9192
tags: |
@@ -96,45 +97,43 @@ jobs:
9697
-
9798
name: Log in to Docker Hub
9899
if: github.event_name == 'push'
99-
path: etherpad
100100
uses: docker/login-action@v3
101101
with:
102102
username: ${{ secrets.DOCKERHUB_USERNAME }}
103103
password: ${{ secrets.DOCKERHUB_TOKEN }}
104104
-
105105
name: Build and push
106106
if: github.event_name == 'push'
107-
path: etherpad
108107
uses: docker/build-push-action@v6
109108
with:
110-
context: .
109+
context: ./etherpad
111110
target: production
112111
platforms: linux/amd64,linux/arm64
113112
push: true
114113
tags: ${{ steps.meta.outputs.tags }}
115114
labels: ${{ steps.meta.outputs.labels }}
116115
- name: Update repo description
117116
uses: peter-evans/dockerhub-description@v4
118-
path: etherpad
119117
if: github.ref == 'refs/heads/master'
120118
with:
119+
readme-filepath: ./etherpad/README.md
121120
username: ${{ secrets.DOCKERHUB_USERNAME }}
122121
password: ${{ secrets.DOCKERHUB_TOKEN }}
123122
repository: etherpad/etherpad
124123
enable-url-completion: true
125124
- name: Check out
126125
uses: actions/checkout@v4
127-
path: ether-charts
128126
with:
127+
path: ether-charts
129128
repository: https://github.com/ether/ether-charts
130129
token: ${{ secrets.GITHUB_TOKEN }}
131130
- name: Update tag in values-dev.yaml
132131
#if: github.event == 'push' && github.ref == 'refs/heads/develop'
133-
path: ether-charts
132+
working-directory: ether-charts
134133
run: |
135134
sed -i 's/tag: ".*"/tag: "${{ steps.meta.outputs.sha }}"/' values-dev.yaml
136135
- name: Commit and push changes
137-
path: ether-charts
136+
working-directory: ether-charts
138137
#if: github.event == 'push' && github.ref == 'refs/heads/develop'
139138
run: |
140139
git config --global user.name 'github-actions[bot]'

0 commit comments

Comments
 (0)