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
|
@ -38,15 +38,12 @@ jobs:
|
|||
repo: meienberger/runtipi
|
||||
workflow_id: ${{ github.run_id }}
|
||||
access_token: ${{ github.token }}
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v1
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
@ -59,24 +56,24 @@ jobs:
|
|||
echo "::set-output name=tag::${TAG}"
|
||||
|
||||
- name: Build and push dashboard
|
||||
uses: docker/build-push-action@v2
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: ./packages/dashboard
|
||||
platforms: linux/amd64,linux/arm64
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
push: true
|
||||
tags: meienberger/tipi-dashboard:rc-${{ steps.meta.outputs.TAG }}
|
||||
cache-from: type=registry,ref=meienberger/tipi-dashboard:latest
|
||||
cache-to: type=inline
|
||||
cache-from: type=registry,ref=meienberger/tipi-dashboard:buildcache
|
||||
cache-to: type=registry,ref=meienberger/tipi-dashboard:buildcache,mode=max
|
||||
|
||||
- name: Build and push api
|
||||
uses: docker/build-push-action@v2
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: ./packages/system-api
|
||||
platforms: linux/amd64,linux/arm64
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
push: true
|
||||
tags: meienberger/tipi-api:rc-${{ steps.meta.outputs.TAG }}
|
||||
cache-from: type=registry,ref=meienberger/tipi-api:latest
|
||||
cache-to: type=inline
|
||||
cache-from: type=registry,ref=meienberger/tipi-api:buildcache
|
||||
cache-to: type=registry,ref=meienberger/tipi-api:buildcache,mode=max
|
||||
|
||||
# Test installation script
|
||||
# test-install:
|
||||
|
|
23
.github/workflows/release.yml
vendored
23
.github/workflows/release.yml
vendored
|
@ -37,15 +37,12 @@ jobs:
|
|||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
-
|
||||
name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
uses: docker/setup-buildx-action@v2
|
||||
-
|
||||
name: Login to DockerHub
|
||||
uses: docker/login-action@v1
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
@ -58,21 +55,21 @@ jobs:
|
|||
echo "::set-output name=tag::${TAG}"
|
||||
-
|
||||
name: Build and push dashboard
|
||||
uses: docker/build-push-action@v2
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: ./packages/dashboard
|
||||
platforms: linux/amd64,linux/arm64
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
push: true
|
||||
tags: meienberger/tipi-dashboard:latest,meienberger/tipi-dashboard:${{ steps.meta.outputs.TAG }}
|
||||
cache-from: type=registry,ref=meienberger/tipi-dashboard:latest
|
||||
cache-to: type=inline
|
||||
cache-from: type=registry,ref=meienberger/tipi-dashboard:buildcache
|
||||
cache-to: type=registry,ref=meienberger/tipi-dashboard:buildcache,mode=max
|
||||
-
|
||||
name: Build and push api
|
||||
uses: docker/build-push-action@v2
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: ./packages/system-api
|
||||
platforms: linux/amd64,linux/arm64
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
push: true
|
||||
tags: meienberger/tipi-api:latest,meienberger/tipi-api:${{ steps.meta.outputs.TAG }}
|
||||
cache-from: type=registry,ref=meienberger/tipi-api:latest
|
||||
cache-to: type=inline
|
||||
cache-from: type=registry,ref=meienberger/tipi-api:buildcache
|
||||
cache-to: type=registry,ref=meienberger/tipi-api:buildcache,mode=max
|
||||
|
|
|
@ -49,7 +49,8 @@ else
|
|||
sudo systemctl start docker
|
||||
sudo systemctl enable docker
|
||||
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 enable docker.service
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue