Skip to content

Commit bc48a18

Browse files
committed
fix the pipeline
1 parent 8062ab4 commit bc48a18

2 files changed

Lines changed: 21 additions & 6 deletions

File tree

.github/workflows/cloud2code.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
build:
1616
outputs:
1717
image_tag: ${{ steps.meta.outputs.tags }}
18+
version: ${{ steps.version.outputs.VERSION }}
1819
permissions:
1920
contents: read
2021
packages: write
@@ -53,6 +54,8 @@ jobs:
5354
tags: |
5455
type=raw,value=${{ steps.version.outputs.VERSION }}
5556
type=raw,value=latest
57+
flavor: |
58+
suffix=${{ matrix.tag-suffix }},onlatest=false
5659
- name: Log in to the Container registry
5760
uses: docker/login-action@v3
5861
with:
@@ -90,7 +93,11 @@ jobs:
9093
- name: Create manifest
9194
run: |
9295
docker buildx imagetools create \
93-
-t ${{ needs.build.outputs.image_tag }} \
94-
${{ needs.build.outputs.image_tag }}-amd \
95-
${{ needs.build.outputs.image_tag }}-arm
96+
-t ghcr.io/stackgenhq/cloud2code:latest \
97+
ghcr.io/stackgenhq/cloud2code:latest-amd \
98+
ghcr.io/stackgenhq/cloud2code:latest-arm
9699
100+
docker buildx imagetools create \
101+
-t ghcr.io/stackgenhq/cloud2code:${{ needs.build.outputs.version }} \
102+
ghcr.io/stackgenhq/cloud2code:${{ needs.build.outputs.version }}-amd \
103+
ghcr.io/stackgenhq/cloud2code:${{ needs.build.outputs.version }}-arm

.github/workflows/stackgen.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
build:
1616
outputs:
1717
image_tag: ${{ steps.meta.outputs.tags }}
18+
version: ${{ steps.version.outputs.VERSION }}
1819
permissions:
1920
contents: read
2021
packages: write
@@ -53,6 +54,8 @@ jobs:
5354
tags: |
5455
type=raw,value=${{ steps.version.outputs.VERSION }}
5556
type=raw,value=latest
57+
flavor: |
58+
suffix=${{ matrix.tag-suffix }},onlatest=false
5659
- name: Log in to the Container registry
5760
uses: docker/login-action@v3
5861
with:
@@ -89,7 +92,12 @@ jobs:
8992
- name: Create manifest
9093
run: |
9194
docker buildx imagetools create \
92-
-t ${{ needs.build.outputs.image_tag }} \
93-
${{ needs.build.outputs.image_tag }}-amd \
94-
${{ needs.build.outputs.image_tag }}-arm
95+
-t ghcr.io/stackgenhq/stackgen:latest \
96+
ghcr.io/stackgenhq/stackgen:latest-amd \
97+
ghcr.io/stackgenhq/stackgen:latest-arm
98+
99+
docker buildx imagetools create \
100+
-t ghcr.io/stackgenhq/stackgen:${{ needs.build.outputs.version }} \
101+
ghcr.io/stackgenhq/stackgen:${{ needs.build.outputs.version }}-amd \
102+
ghcr.io/stackgenhq/stackgen:${{ needs.build.outputs.version }}-arm
95103

0 commit comments

Comments
 (0)