Skip to content

Commit ab6c9bf

Browse files
committed
Update docker-push-image.yml
1 parent 7693149 commit ab6c9bf

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

.github/workflows/docker-push-image.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ name: Publish Docker image
88
on:
99
push:
1010
tags:
11-
- '*-dev-*'
11+
- '*-dev.*'
1212
release:
1313
# `published` type is triggered for both `latest` and `prerelease` releases
1414
types: [published]
@@ -41,19 +41,19 @@ jobs:
4141
latest=false
4242
suffix=-app
4343
# conditional tagging logic based on event type and git tag structure:
44-
# if (prerelease && git tag pattern matches portage-(\d+\.\d+\.\d+-alpha-\d+)$ pattern):
45-
# - tag image as \d+\.\d+\.\d+-alpha-\d+-app
44+
# if (prerelease && git tag pattern matches portage-(\d+\.\d+\.\d+-rc.\d+)$ pattern):
45+
# - tag image as \d+\.\d+\.\d+-rc.\d+-app
4646
# else if (latest stable release && git tag pattern matches portage-(\d+\.\d+\.\d+)$ pattern):
4747
# - tag image as \d+\.\d+\.\d+\d+-app
48-
# else if (push event && git tag pattern matches portage-(\d+\.\d+\.\d+-dev-\d+\.\d+\.\d+) pattern):
49-
# - tag image as \d+\.\d+\.\d+-dev-\d+\.\d+\.\d+-app
48+
# else if (push event && git tag pattern matches portage-(\d+\.\d+\.\d+-dev.\d+) pattern):
49+
# - tag image as \d+\.\d+\.\d+-dev.\d+-app
5050
tags: |
5151
${{ github.event.release.prerelease &&
52-
'type=match,pattern=.+portage-(\d+\.\d+\.\d+-alpha-\d+)$,group=1' ||
52+
'type=match,pattern=.+portage-(\d+\.\d+\.\d+-rc.\d+)$,group=1' ||
5353
(github.event_name == 'release' && !github.event.release.prerelease &&
5454
'type=match,pattern=.+portage-(\d+\.\d+\.\d+)$,group=1') ||
5555
(github.event_name == 'push' &&
56-
'type=match,pattern=.+portage-(\d+\.\d+\.\d+-dev-\d+\.\d+\.\d+),group=1') }}
56+
'type=match,pattern=.+portage-(\d+\.\d+\.\d+-dev.\d+),group=1') }}
5757
5858
# Extract metadata for assets image
5959
- name: Extract metadata (tags) for Docker assets image
@@ -65,19 +65,19 @@ jobs:
6565
latest=false
6666
suffix=-assets
6767
# conditional tagging logic based on event type and git tag structure:
68-
# if (prerelease && git tag pattern matches portage-(\d+\.\d+\.\d+-alpha-\d+)$ pattern):
69-
# - tag image as \d+\.\d+\.\d+-alpha-\d+-assets
68+
# if (prerelease && git tag pattern matches portage-(\d+\.\d+\.\d+-rc.\d+)$ pattern):
69+
# - tag image as \d+\.\d+\.\d+-rc.\d+-assets
7070
# else if (latest stable release && git tag pattern matches portage-(\d+\.\d+\.\d+)$ pattern):
7171
# - tag image as \d+\.\d+\.\d+\d+-assets
72-
# else if (push event && git tag pattern matches portage-(\d+\.\d+\.\d+-dev-\d+\.\d+\.\d+) pattern):
73-
# - tag image as \d+\.\d+\.\d+-dev-\d+\.\d+\.\d+-assets
72+
# else if (push event && git tag pattern matches portage-(\d+\.\d+\.\d+-dev.\d+) pattern):
73+
# - tag image as \d+\.\d+\.\d+-dev.\d+-assets
7474
tags: |
7575
${{ github.event.release.prerelease &&
76-
'type=match,pattern=.+portage-(\d+\.\d+\.\d+-alpha-\d+)$,group=1' ||
76+
'type=match,pattern=.+portage-(\d+\.\d+\.\d+-rc.\d+)$,group=1' ||
7777
(github.event_name == 'release' && !github.event.release.prerelease &&
7878
'type=match,pattern=.+portage-(\d+\.\d+\.\d+)$,group=1') ||
7979
(github.event_name == 'push' &&
80-
'type=match,pattern=.+portage-(\d+\.\d+\.\d+-dev-\d+\.\d+\.\d+),group=1') }}
80+
'type=match,pattern=.+portage-(\d+\.\d+\.\d+-dev.\d+),group=1') }}
8181
8282
8383
- name: Build and push the app stage image

0 commit comments

Comments
 (0)