Skip to content

Commit 1b2f229

Browse files
authored
Fix images publishing (#1209)
1 parent 011c13a commit 1b2f229

8 files changed

Lines changed: 52 additions & 20 deletions

File tree

.github/workflows/publish.yml

Lines changed: 45 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,45 @@ jobs:
7474
username: ${{ github.actor }}
7575
password: ${{ secrets.GITHUB_TOKEN }}
7676

77-
# Use metadata action to generate tags
78-
- name: Docker Metadata action
79-
id: meta
77+
# Use metadata action to generate tags for frontend
78+
- name: Docker Metadata action - Frontend
79+
id: meta-frontend
8080
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0
8181
with:
82-
images: |
83-
${{ env.registry }}/${{ env.REPO_OWNER_LOWER }}/${{ env.app-name }}/frontend
84-
${{ env.registry }}/${{ env.REPO_OWNER_LOWER }}/${{ env.app-name }}/backend
85-
${{ env.registry }}/${{ env.REPO_OWNER_LOWER }}/${{ env.app-name }}/airflow-webserver
86-
${{ env.registry }}/${{ env.REPO_OWNER_LOWER }}/${{ env.app-name }}/airflow-scheduler
82+
images: ${{ env.registry }}/${{ env.REPO_OWNER_LOWER }}/${{ env.app-name }}/frontend
83+
tags: |
84+
type=semver,pattern={{version}}
85+
type=semver,pattern={{major}}
86+
type=semver,pattern={{major}}.{{minor}}
87+
88+
# Use metadata action to generate tags for backend
89+
- name: Docker Metadata action - Backend
90+
id: meta-backend
91+
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0
92+
with:
93+
images: ${{ env.registry }}/${{ env.REPO_OWNER_LOWER }}/${{ env.app-name }}/backend
94+
tags: |
95+
type=semver,pattern={{version}}
96+
type=semver,pattern={{major}}
97+
type=semver,pattern={{major}}.{{minor}}
98+
99+
# Use metadata action to generate tags for airflow-webserver
100+
- name: Docker Metadata action - Airflow Webserver
101+
id: meta-airflow-webserver
102+
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0
103+
with:
104+
images: ${{ env.registry }}/${{ env.REPO_OWNER_LOWER }}/${{ env.app-name }}/airflow-webserver
105+
tags: |
106+
type=semver,pattern={{version}}
107+
type=semver,pattern={{major}}
108+
type=semver,pattern={{major}}.{{minor}}
109+
110+
# Use metadata action to generate tags for airflow-scheduler
111+
- name: Docker Metadata action - Airflow Scheduler
112+
id: meta-airflow-scheduler
113+
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0
114+
with:
115+
images: ${{ env.registry }}/${{ env.REPO_OWNER_LOWER }}/${{ env.app-name }}/airflow-scheduler
87116
tags: |
88117
type=semver,pattern={{version}}
89118
type=semver,pattern={{major}}
@@ -94,32 +123,35 @@ jobs:
94123
uses: akhilerm/tag-push-action@f35ff2cb99d407368b5c727adbcc14a2ed81d509 # v2.2.0
95124
with:
96125
src: ${{ env.registry }}/${{ env.REPO_OWNER_LOWER }}/${{ env.app-name }}/frontend:edge
97-
dst: ${{ steps.meta.outputs.tags }}
126+
dst: ${{ steps.meta-frontend.outputs.tags }}
98127

99128
# Retag backend edge image with release version
100129
- name: Push backend image tags
101130
uses: akhilerm/tag-push-action@f35ff2cb99d407368b5c727adbcc14a2ed81d509 # v2.2.0
102131
with:
103132
src: ${{ env.registry }}/${{ env.REPO_OWNER_LOWER }}/${{ env.app-name }}/backend:edge
104-
dst: ${{ steps.meta.outputs.tags }}
133+
dst: ${{ steps.meta-backend.outputs.tags }}
105134

106135
# Retag Airflow webserver edge image with release version
107136
- name: Push Airflow webserver image tags
108137
uses: akhilerm/tag-push-action@f35ff2cb99d407368b5c727adbcc14a2ed81d509 # v2.2.0
109138
with:
110139
src: ${{ env.registry }}/${{ env.REPO_OWNER_LOWER }}/${{ env.app-name }}/airflow-webserver:edge
111-
dst: ${{ steps.meta.outputs.tags }}
140+
dst: ${{ steps.meta-airflow-webserver.outputs.tags }}
112141

113142
# Retag Airflow scheduler edge image with release version
114143
- name: Push Airflow scheduler image tags
115144
uses: akhilerm/tag-push-action@f35ff2cb99d407368b5c727adbcc14a2ed81d509 # v2.2.0
116145
with:
117146
src: ${{ env.registry }}/${{ env.REPO_OWNER_LOWER }}/${{ env.app-name }}/airflow-scheduler:edge
118-
dst: ${{ steps.meta.outputs.tags }}
147+
dst: ${{ steps.meta-airflow-scheduler.outputs.tags }}
119148

120149
- name: Release Summary
121150
run: |
122151
echo "✅ Successfully retagged edge images for version: ${{ github.event.release.tag_name }}"
123-
echo "📦 Images tagged with: ${{ steps.meta.outputs.tags }}"
152+
echo "📦 Frontend image tagged with: ${{ steps.meta-frontend.outputs.tags }}"
153+
echo "📦 Backend image tagged with: ${{ steps.meta-backend.outputs.tags }}"
154+
echo "📦 Airflow webserver image tagged with: ${{ steps.meta-airflow-webserver.outputs.tags }}"
155+
echo "📦 Airflow scheduler image tagged with: ${{ steps.meta-airflow-scheduler.outputs.tags }}"
124156
echo "🔗 Release URL: ${{ github.event.release.html_url }}"
125157
echo "📅 Release time: $(date -u)"

app/airflow/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "carrot-airflow"
3-
version = "4.2.0"
3+
version = "4.2.1"
44
description = "Add your description here"
55
readme = "README.md"
66
requires-python = ">=3.11"

app/airflow/uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/api/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "api"
3-
version = "4.2.0"
3+
version = "4.2.1"
44
description = "Web app for Carrot-Mapper"
55

66
authors = [

app/api/uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/next-client-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "next-client-app",
3-
"version": "4.2.0",
3+
"version": "4.2.1",
44
"private": true,
55
"scripts": {
66
"dev": "next dev --turbo",

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "carrot-mapper"
3-
version = "4.2.0"
3+
version = "4.2.1"
44
description = ""
55
authors = [
66
{ name = "Sam Cox", email = "sam.cox@nottingham.ac.uk" },

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)