Commit afbdef4
committed
fix(ci): gate :latest Docker tag to non-beta builds
The shared publish_docker_image.yml template was copied into both
public repos by sync-releases — evolution-go (stable) and
evolution-go-beta. Every beta build pushed both :X.Y.Z-beta AND
:latest to evoapicloud/evolution-go, overwriting the stable :latest
with obfuscated beta code. Anyone doing `docker pull evolution-go:latest`
between the last beta push and the next stable release was getting
beta code in production.
Two changes:
1. Tag :latest only when VERSION does not contain "-beta" (via
docker/metadata-action enable= condition). Beta builds keep
pushing :X.Y.Z-beta; stable builds keep pushing :X.Y.Z + :latest.
2. Drop the `tags: ["*.*.*"]` trigger. sync-releases pushes the
branch commit AND the tag simultaneously, which caused a duplicate
build per release. The `branches: [main]` trigger alone covers it.
This template reaches both public repos on the next sync, so both
evolution-go and evolution-go-beta will pick up the fix. Recovery of
the currently-contaminated :latest happens automatically on the next
stable release push (develop→main merge for v0.7.1).1 parent 8efff8a commit afbdef4
1 file changed
Lines changed: 1 addition & 3 deletions
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | 7 | | |
10 | 8 | | |
11 | 9 | | |
| |||
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
34 | | - | |
| 32 | + | |
35 | 33 | | |
36 | 34 | | |
37 | 35 | | |
| |||
0 commit comments