|
@@ -1,10 +1,9 @@
|
|
-
|
|
|
|
name: Publish release
|
|
name: Publish release
|
|
on:
|
|
on:
|
|
push:
|
|
push:
|
|
- branches:
|
|
|
|
|
|
+ branches:
|
|
- master
|
|
- master
|
|
-
|
|
|
|
|
|
+
|
|
jobs:
|
|
jobs:
|
|
release:
|
|
release:
|
|
if: github.repository == 'meienberger/runtipi'
|
|
if: github.repository == 'meienberger/runtipi'
|
|
@@ -18,25 +17,25 @@ jobs:
|
|
|
|
|
|
- name: Set up Docker Buildx
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
uses: docker/setup-buildx-action@v2
|
|
-
|
|
|
|
|
|
+
|
|
- name: Login to DockerHub
|
|
- name: Login to DockerHub
|
|
uses: docker/login-action@v2
|
|
uses: docker/login-action@v2
|
|
with:
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
-
|
|
|
|
|
|
+
|
|
- name: Get tag from VERSION file
|
|
- name: Get tag from VERSION file
|
|
id: meta
|
|
id: meta
|
|
run: |
|
|
run: |
|
|
VERSION=$(npm run version --silent)
|
|
VERSION=$(npm run version --silent)
|
|
TAG=${VERSION}
|
|
TAG=${VERSION}
|
|
echo "::set-output name=tag::${TAG}"
|
|
echo "::set-output name=tag::${TAG}"
|
|
-
|
|
|
|
|
|
+
|
|
- name: Build and push images
|
|
- name: Build and push images
|
|
uses: docker/build-push-action@v3
|
|
uses: docker/build-push-action@v3
|
|
with:
|
|
with:
|
|
context: .
|
|
context: .
|
|
- platforms: linux/amd64,linux/arm64,linux/arm/v7
|
|
|
|
|
|
+ platforms: linux/amd64,linux/arm64
|
|
push: true
|
|
push: true
|
|
tags: meienberger/runtipi:latest,meienberger/runtipi:${{ steps.meta.outputs.TAG }}
|
|
tags: meienberger/runtipi:latest,meienberger/runtipi:${{ steps.meta.outputs.TAG }}
|
|
cache-from: type=registry,ref=meienberger/runtipi:buildcache
|
|
cache-from: type=registry,ref=meienberger/runtipi:buildcache
|
|
@@ -48,7 +47,7 @@ jobs:
|
|
with:
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
package-path: ./package.json
|
|
package-path: ./package.json
|
|
-
|
|
|
|
|
|
+
|
|
- name: Create Release
|
|
- name: Create Release
|
|
id: create_release
|
|
id: create_release
|
|
uses: actions/create-release@latest
|
|
uses: actions/create-release@latest
|