Skip to content

Commit

Permalink
add cache
Browse files Browse the repository at this point in the history
  • Loading branch information
K4ST0R committed Apr 29, 2024
1 parent ea9c999 commit edc49ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/manual-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ on:
description: Refresh token"
type: string
required: true
idToken:
description: Id token"
type: string
required: true

jobs:
docker:
Expand All @@ -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:
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/shiny/app_expo_ij/DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Package: app_expo_ij
Package: appexpoij
Type: Package
Title: Une app pour expo
Version: 0.1.1
Expand Down

0 comments on commit edc49ad

Please sign in to comment.