Update docker.yaml
Browse files
.github/workflows/docker.yaml
CHANGED
|
@@ -38,12 +38,24 @@ jobs:
|
|
| 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 }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
|
| 49 |
labels: ${{ steps.meta.outputs.labels }}
|
|
|
|
| 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 }}
|