Update release workflow with cache features
This commit is contained in:
parent
578490d513
commit
001905556b
3 changed files with 22 additions and 27 deletions
23
.github/workflows/release-candidate.yml
vendored
23
.github/workflows/release-candidate.yml
vendored
|
@ -39,14 +39,11 @@ jobs:
|
||||||
workflow_id: ${{ github.run_id }}
|
workflow_id: ${{ github.run_id }}
|
||||||
access_token: ${{ github.token }}
|
access_token: ${{ github.token }}
|
||||||
|
|
||||||
- name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v1
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
@ -59,24 +56,24 @@ jobs:
|
||||||
echo "::set-output name=tag::${TAG}"
|
echo "::set-output name=tag::${TAG}"
|
||||||
|
|
||||||
- name: Build and push dashboard
|
- name: Build and push dashboard
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
context: ./packages/dashboard
|
context: ./packages/dashboard
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
push: true
|
push: true
|
||||||
tags: meienberger/tipi-dashboard:rc-${{ steps.meta.outputs.TAG }}
|
tags: meienberger/tipi-dashboard:rc-${{ steps.meta.outputs.TAG }}
|
||||||
cache-from: type=registry,ref=meienberger/tipi-dashboard:latest
|
cache-from: type=registry,ref=meienberger/tipi-dashboard:buildcache
|
||||||
cache-to: type=inline
|
cache-to: type=registry,ref=meienberger/tipi-dashboard:buildcache,mode=max
|
||||||
|
|
||||||
- name: Build and push api
|
- name: Build and push api
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
context: ./packages/system-api
|
context: ./packages/system-api
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
push: true
|
push: true
|
||||||
tags: meienberger/tipi-api:rc-${{ steps.meta.outputs.TAG }}
|
tags: meienberger/tipi-api:rc-${{ steps.meta.outputs.TAG }}
|
||||||
cache-from: type=registry,ref=meienberger/tipi-api:latest
|
cache-from: type=registry,ref=meienberger/tipi-api:buildcache
|
||||||
cache-to: type=inline
|
cache-to: type=registry,ref=meienberger/tipi-api:buildcache,mode=max
|
||||||
|
|
||||||
# Test installation script
|
# Test installation script
|
||||||
# test-install:
|
# test-install:
|
||||||
|
|
23
.github/workflows/release.yml
vendored
23
.github/workflows/release.yml
vendored
|
@ -37,15 +37,12 @@ jobs:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
-
|
|
||||||
name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v1
|
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v2
|
||||||
-
|
-
|
||||||
name: Login to DockerHub
|
name: Login to DockerHub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
@ -58,21 +55,21 @@ jobs:
|
||||||
echo "::set-output name=tag::${TAG}"
|
echo "::set-output name=tag::${TAG}"
|
||||||
-
|
-
|
||||||
name: Build and push dashboard
|
name: Build and push dashboard
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
context: ./packages/dashboard
|
context: ./packages/dashboard
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
push: true
|
push: true
|
||||||
tags: meienberger/tipi-dashboard:latest,meienberger/tipi-dashboard:${{ steps.meta.outputs.TAG }}
|
tags: meienberger/tipi-dashboard:latest,meienberger/tipi-dashboard:${{ steps.meta.outputs.TAG }}
|
||||||
cache-from: type=registry,ref=meienberger/tipi-dashboard:latest
|
cache-from: type=registry,ref=meienberger/tipi-dashboard:buildcache
|
||||||
cache-to: type=inline
|
cache-to: type=registry,ref=meienberger/tipi-dashboard:buildcache,mode=max
|
||||||
-
|
-
|
||||||
name: Build and push api
|
name: Build and push api
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
context: ./packages/system-api
|
context: ./packages/system-api
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
push: true
|
push: true
|
||||||
tags: meienberger/tipi-api:latest,meienberger/tipi-api:${{ steps.meta.outputs.TAG }}
|
tags: meienberger/tipi-api:latest,meienberger/tipi-api:${{ steps.meta.outputs.TAG }}
|
||||||
cache-from: type=registry,ref=meienberger/tipi-api:latest
|
cache-from: type=registry,ref=meienberger/tipi-api:buildcache
|
||||||
cache-to: type=inline
|
cache-to: type=registry,ref=meienberger/tipi-api:buildcache,mode=max
|
||||||
|
|
|
@ -49,7 +49,8 @@ else
|
||||||
sudo systemctl start docker
|
sudo systemctl start docker
|
||||||
sudo systemctl enable docker
|
sudo systemctl enable docker
|
||||||
elif [[ "${OS}" == "arch" ]]; then
|
elif [[ "${OS}" == "arch" ]]; then
|
||||||
sudo pacman -Sy --noconfirm docker
|
sudo pacman -Sy --noconfirm docker cronie
|
||||||
|
systemctl enable --now cronie.service
|
||||||
sudo systemctl start docker.service
|
sudo systemctl start docker.service
|
||||||
sudo systemctl enable docker.service
|
sudo systemctl enable docker.service
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue