Skip to content

Commit

Permalink
fix: ci env var
Browse files Browse the repository at this point in the history
  • Loading branch information
ImSoZRious committed Mar 28, 2024
1 parent f591b24 commit 415cc42
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- main

env:
IMAGE_NAME: ghcr.io/isd-sgcu/cutu2024-backend

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -25,6 +28,6 @@ jobs:
with:
push: true
path: apps/server
tags: ${{ env.IMAGE_NAME }}:${{ github.ref_type == 'tag' && github.ref_name || github.sha }}
tags: ${{ env.IMAGE_NAME }}:${{ github.ref_type == 'tag' && github.ref_name || github.sha }},${{ env.IMAGE_NAME }}:latest
cache-from: type=gha,ref=${{ env.IMAGE_NAME }}:buildcache
cache-to: type=gha,ref=${{ env.IMAGE_NAME }}:buildcache,mode=max

0 comments on commit 415cc42

Please sign in to comment.