Skip to content

Commit 81bdf02

Browse files
committed
6601: Fixed build image names in actions
1 parent 33c6c2b commit 81bdf02

3 files changed

Lines changed: 10 additions & 23 deletions

File tree

.github/workflows/github_build_release.yml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
tags: |
103103
type=raw,value=${{ github.ref_name }}
104104
105-
- name: Build and push Docker image
105+
- name: Build and push Docker image (main)
106106
id: push-main
107107
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
108108
with:
@@ -113,16 +113,8 @@ jobs:
113113
push: true
114114
tags: ${{ steps.meta-main.outputs.tags }}
115115
labels: ${{ steps.meta-main.outputs.labels }}
116-
provenance: mode=max
117116
sbom: true
118117

119-
- name: Generate artifact attestation
120-
uses: actions/attest-build-provenance@v3
121-
with:
122-
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_MAIN}}
123-
subject-digest: ${{ steps.push-main.outputs.digest }}
124-
push-to-registry: true
125-
126118
# Build Nginx (depends on main)
127119
- name: Docker meta (nginx)
128120
id: meta-nginx
@@ -132,24 +124,17 @@ jobs:
132124
tags: |
133125
type=raw,value=${{ github.ref_name }}
134126
135-
- name: Build and push Docker image
127+
- name: Build and push Docker image (nginx)
136128
id: push-nginx
137129
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
138130
with:
139131
context: ./infrastructure/nginx/
140132
file: ./infrastructure/nginx/Dockerfile
141133
build-args: |
142134
APP_VERSION=${{ github.ref_name }}
135+
APP_IMAGE=${{ env.IMAGE_NAME_MAIN }}
143136
push: true
144137
pull: true
145138
tags: ${{ steps.meta-nginx.outputs.tags }}
146139
labels: ${{ steps.meta-nginx.outputs.labels }}
147-
provenance: mode=max
148140
sbom: true
149-
150-
- name: Generate artifact attestation
151-
uses: actions/attest-build-provenance@v3
152-
with:
153-
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_NGINX}}
154-
subject-digest: ${{ steps.push-nginx.outputs.digest }}
155-
push-to-registry: true

infrastructure/build-n-push.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,18 @@ docker buildx build \
1212
--no-cache \
1313
--pull \
1414
--build-arg APP_VERSION=${APP_VERSION} \
15-
--tag=ghcr.io/itk-dev/display-api-service:${APP_VERSION} \
15+
--tag=ghcr.io/itk-dev/os2display-api-service:${APP_VERSION} \
1616
--file="display-api-service/Dockerfile" ../
1717

18-
docker push ghcr.io/itk-dev/display-api-service:${APP_VERSION}
18+
docker push ghcr.io/itk-dev/os2display-api-service:${APP_VERSION}
1919

2020
docker buildx build \
2121
--platform linux/amd64,linux/arm64 \
2222
--no-cache \
2323
--pull \
2424
--build-arg APP_VERSION=${APP_VERSION} \
25-
--tag=ghcr.io/itk-dev/display-api-service-nginx:${APP_VERSION} \
25+
--build-arg APP_IMAGE=os2display-api-service \
26+
--tag=ghcr.io/itk-dev/os2display-api-service-nginx:${APP_VERSION} \
2627
--file="nginx/Dockerfile" nginx
2728

28-
docker push ghcr.io/itk-dev/display-api-service-nginx:${APP_VERSION}
29+
docker push ghcr.io/itk-dev/os2display-api-service-nginx:${APP_VERSION}

infrastructure/nginx/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
ARG APP_VERSION="develop"
2+
ARG APP_IMAGE="os2display-api-service"
23

3-
FROM --platform=$BUILDPLATFORM ghcr.io/itk-dev/display-api-service:${APP_VERSION} AS app
4+
FROM --platform=$BUILDPLATFORM ghcr.io/itk-dev/os2display-api-service:${APP_VERSION} AS app
45

56

67
######## Nginx production image ########

0 commit comments

Comments
 (0)