leex279 commited on
Commit
7dda793
·
unverified ·
1 Parent(s): 5297081

Update docker.yaml

Browse files
Files changed (1) hide show
  1. .github/workflows/docker.yaml +2 -14
.github/workflows/docker.yaml CHANGED
@@ -38,24 +38,12 @@ jobs:
38
  with:
39
  images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
40
 
41
- - name: Build and push Docker image for main
42
- if: github.ref == 'refs/heads/main'
43
  uses: docker/build-push-action@v6
44
  with:
45
  context: .
46
  push: true
47
  tags: |
48
- ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
49
- ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
50
- labels: ${{ steps.meta.outputs.labels }}
51
-
52
- - name: Build and push Docker image for stable
53
- if: github.ref == 'refs/heads/stable'
54
- uses: docker/build-push-action@v6
55
- with:
56
- context: .
57
- push: true
58
- tags: |
59
- ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:stable
60
  ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
61
  labels: ${{ steps.meta.outputs.labels }}
 
38
  with:
39
  images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
40
 
41
+ - name: Build and push Docker image
 
42
  uses: docker/build-push-action@v6
43
  with:
44
  context: .
45
  push: true
46
  tags: |
47
+ ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref == 'refs/heads/stable' && 'stable' || 'latest' }}
 
 
 
 
 
 
 
 
 
 
 
48
  ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
49
  labels: ${{ steps.meta.outputs.labels }}