mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 07:35:05 -04:00
Adapted docker.yml
This commit is contained in:
parent
676edddc38
commit
6567019e92
1 changed files with 26 additions and 0 deletions
26
.github/workflows/docker.yml
vendored
26
.github/workflows/docker.yml
vendored
|
@ -22,6 +22,7 @@ jobs:
|
|||
-
|
||||
name: Check out
|
||||
uses: actions/checkout@v4
|
||||
path: etherpad
|
||||
-
|
||||
name: Set up QEMU
|
||||
if: github.event_name == 'push'
|
||||
|
@ -62,6 +63,7 @@ jobs:
|
|||
${{ runner.os }}-pnpm-store-
|
||||
-
|
||||
name: Test
|
||||
path: etherpad
|
||||
run: |
|
||||
docker run --rm -d -p 9001:9001 --name test ${{ env.TEST_TAG }}
|
||||
./bin/installDeps.sh
|
||||
|
@ -82,6 +84,7 @@ jobs:
|
|||
if: github.event_name == 'push'
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
path: etherpad
|
||||
with:
|
||||
images: etherpad/etherpad
|
||||
tags: |
|
||||
|
@ -92,6 +95,7 @@ jobs:
|
|||
-
|
||||
name: Log in to Docker Hub
|
||||
if: github.event_name == 'push'
|
||||
path: etherpad
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
|
@ -99,6 +103,7 @@ jobs:
|
|||
-
|
||||
name: Build and push
|
||||
if: github.event_name == 'push'
|
||||
path: etherpad
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
|
@ -109,9 +114,30 @@ jobs:
|
|||
labels: ${{ steps.meta.outputs.labels }}
|
||||
- name: Update repo description
|
||||
uses: peter-evans/dockerhub-description@v4
|
||||
path: etherpad
|
||||
if: github.ref == 'refs/heads/master'
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
repository: etherpad/etherpad
|
||||
enable-url-completion: true
|
||||
- name: Check out
|
||||
uses: actions/checkout@v4
|
||||
path: ether-charts
|
||||
with:
|
||||
repository: https://github.com/ether/ether-charts
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Update tag in values-dev.yaml
|
||||
#if: github.event == 'push' && github.ref == 'refs/heads/develop'
|
||||
path: ether-charts
|
||||
run: |
|
||||
sed -i 's/tag: ".*"/tag: "${{ steps.meta.outputs.sha }}"/' values-dev.yaml
|
||||
- name: Commit and push changes
|
||||
path: ether-charts
|
||||
#if: github.event == 'push' && github.ref == 'refs/heads/develop'
|
||||
run: |
|
||||
git config --global user.name 'github-actions[bot]'
|
||||
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
|
||||
git add values-dev.yaml
|
||||
git commit -m 'Update develop image tag'
|
||||
git push
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue