|
@@ -34,27 +34,29 @@ jobs:
|
|
docker:
|
|
docker:
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
steps:
|
|
- -
|
|
|
|
- name: Checkout
|
|
|
|
|
|
+ - name: Checkout
|
|
uses: actions/checkout@v3
|
|
uses: actions/checkout@v3
|
|
- -
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
|
|
+
|
|
|
|
+ - name: Set up QEMU
|
|
|
|
+ uses: docker/setup-qemu-action@v2
|
|
|
|
+
|
|
|
|
+ - 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=$(cat VERSION)
|
|
VERSION=$(cat VERSION)
|
|
TAG=${VERSION}
|
|
TAG=${VERSION}
|
|
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@v3
|
|
uses: docker/build-push-action@v3
|
|
with:
|
|
with:
|
|
context: ./packages/dashboard
|
|
context: ./packages/dashboard
|
|
@@ -63,8 +65,8 @@ jobs:
|
|
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:buildcache
|
|
cache-from: type=registry,ref=meienberger/tipi-dashboard:buildcache
|
|
cache-to: type=registry,ref=meienberger/tipi-dashboard:buildcache,mode=max
|
|
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@v3
|
|
uses: docker/build-push-action@v3
|
|
with:
|
|
with:
|
|
context: ./packages/system-api
|
|
context: ./packages/system-api
|