mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 07:35:05 -04:00
Update docker.yml
This commit is contained in:
parent
ae15d4ea30
commit
ff73af8aad
1 changed files with 10 additions and 11 deletions
19
.github/workflows/docker.yml
vendored
19
.github/workflows/docker.yml
vendored
|
@ -23,7 +23,9 @@ jobs:
|
||||||
-
|
-
|
||||||
name: Check out
|
name: Check out
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
path: etherpad
|
path: etherpad
|
||||||
|
|
||||||
-
|
-
|
||||||
name: Set up QEMU
|
name: Set up QEMU
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
|
@ -35,7 +37,7 @@ jobs:
|
||||||
name: Build and export to Docker
|
name: Build and export to Docker
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: ./etherpad
|
||||||
target: production
|
target: production
|
||||||
load: true
|
load: true
|
||||||
tags: ${{ env.TEST_TAG }}
|
tags: ${{ env.TEST_TAG }}
|
||||||
|
@ -64,7 +66,7 @@ jobs:
|
||||||
${{ runner.os }}-pnpm-store-
|
${{ runner.os }}-pnpm-store-
|
||||||
-
|
-
|
||||||
name: Test
|
name: Test
|
||||||
path: etherpad
|
working-directory: etherpad
|
||||||
run: |
|
run: |
|
||||||
docker run --rm -d -p 9001:9001 --name test ${{ env.TEST_TAG }}
|
docker run --rm -d -p 9001:9001 --name test ${{ env.TEST_TAG }}
|
||||||
./bin/installDeps.sh
|
./bin/installDeps.sh
|
||||||
|
@ -85,7 +87,6 @@ jobs:
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
path: etherpad
|
|
||||||
with:
|
with:
|
||||||
images: etherpad/etherpad
|
images: etherpad/etherpad
|
||||||
tags: |
|
tags: |
|
||||||
|
@ -96,7 +97,6 @@ jobs:
|
||||||
-
|
-
|
||||||
name: Log in to Docker Hub
|
name: Log in to Docker Hub
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
path: etherpad
|
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
@ -104,10 +104,9 @@ jobs:
|
||||||
-
|
-
|
||||||
name: Build and push
|
name: Build and push
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
path: etherpad
|
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: ./etherpad
|
||||||
target: production
|
target: production
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
|
@ -115,26 +114,26 @@ jobs:
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
- name: Update repo description
|
- name: Update repo description
|
||||||
uses: peter-evans/dockerhub-description@v4
|
uses: peter-evans/dockerhub-description@v4
|
||||||
path: etherpad
|
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
with:
|
with:
|
||||||
|
readme-filepath: ./etherpad/README.md
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
repository: etherpad/etherpad
|
repository: etherpad/etherpad
|
||||||
enable-url-completion: true
|
enable-url-completion: true
|
||||||
- name: Check out
|
- name: Check out
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
path: ether-charts
|
|
||||||
with:
|
with:
|
||||||
|
path: ether-charts
|
||||||
repository: https://github.com/ether/ether-charts
|
repository: https://github.com/ether/ether-charts
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Update tag in values-dev.yaml
|
- name: Update tag in values-dev.yaml
|
||||||
#if: github.event == 'push' && github.ref == 'refs/heads/develop'
|
#if: github.event == 'push' && github.ref == 'refs/heads/develop'
|
||||||
path: ether-charts
|
working-directory: ether-charts
|
||||||
run: |
|
run: |
|
||||||
sed -i 's/tag: ".*"/tag: "${{ steps.meta.outputs.sha }}"/' values-dev.yaml
|
sed -i 's/tag: ".*"/tag: "${{ steps.meta.outputs.sha }}"/' values-dev.yaml
|
||||||
- name: Commit and push changes
|
- name: Commit and push changes
|
||||||
path: ether-charts
|
working-directory: ether-charts
|
||||||
#if: github.event == 'push' && github.ref == 'refs/heads/develop'
|
#if: github.event == 'push' && github.ref == 'refs/heads/develop'
|
||||||
run: |
|
run: |
|
||||||
git config --global user.name 'github-actions[bot]'
|
git config --global user.name 'github-actions[bot]'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue