From edc49ade092920fc5ddb6ac383ed443417ca0c52 Mon Sep 17 00:00:00 2001 From: Ananda Date: Mon, 29 Apr 2024 16:36:00 +0200 Subject: [PATCH] add cache --- .github/workflows/manual-deploy.yml | 17 +++++------------ app/shiny/app_expo_ij/DESCRIPTION | 2 +- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/.github/workflows/manual-deploy.yml b/.github/workflows/manual-deploy.yml index f4ef7a4..6fdc0e9 100644 --- a/.github/workflows/manual-deploy.yml +++ b/.github/workflows/manual-deploy.yml @@ -12,10 +12,6 @@ on: description: Refresh token" type: string required: true - idToken: - description: Id token" - type: string - required: true jobs: docker: @@ -37,21 +33,22 @@ jobs: - 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@v3 - name: Login to DockerHub - if: github.event_name != 'pull_request' - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v5 with: context: ./app/ file: ./app/Dockerfile push: true tags: ${{ env.IMAGE_NAME }}:latest labels: ${{ steps.docker_meta.outputs.labels }} + cache-from: type=gha + cache-to: type=gha,mode=max - name: Image digest run: echo ${{ steps.docker_build.outputs.digest }} deploy: @@ -65,10 +62,6 @@ jobs: REFRESH_TOKEN=$(jq -r '.inputs.refreshToken' $GITHUB_EVENT_PATH) echo ::add-mask::$REFRESH_TOKEN echo REFRESH_TOKEN=$REFRESH_TOKEN >> $GITHUB_ENV - - ID_TOKEN=$(jq -r '.inputs.idToken' $GITHUB_EVENT_PATH) - echo ::add-mask::$ID_TOKEN - echo ID_TOKEN=$ID_TOKEN >> $GITHUB_ENV - name: Checkout uses: actions/checkout@v4 - uses: azure/setup-kubectl@v3 diff --git a/app/shiny/app_expo_ij/DESCRIPTION b/app/shiny/app_expo_ij/DESCRIPTION index 55c1666..a2fa99f 100644 --- a/app/shiny/app_expo_ij/DESCRIPTION +++ b/app/shiny/app_expo_ij/DESCRIPTION @@ -1,4 +1,4 @@ -Package: app_expo_ij +Package: appexpoij Type: Package Title: Une app pour expo Version: 0.1.1