Skip to content

Commit 54040e7

Browse files
committed
Add versioned Docker image tagging based on demyx orchestrator version
1 parent 27d1207 commit 54040e7

2 files changed

Lines changed: 26 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,21 @@ jobs:
2020
with:
2121
username: demyx
2222
password: ${{ secrets.DOCKER_TOKEN }}
23+
- name: Resolve DEMYX version tag
24+
run: |
25+
DEMYX_VERSION_FILE="$(curl -fsSL https://raw.githubusercontent.com/demyxsh/demyx/refs/heads/master/VERSION)"
26+
DEMYX_VERSION_TAG="$(printf '%s\n' "$DEMYX_VERSION_FILE" | sed -n 's/^DEMYX_VERSION=//p' | head -n 1 | tr -d '[:space:]')"
27+
28+
if [[ -z "$DEMYX_VERSION_TAG" ]]; then
29+
echo "Failed to resolve DEMYX_VERSION from remote VERSION file." >&2
30+
exit 1
31+
fi
32+
33+
echo "DEMYX_VERSION_TAG=$DEMYX_VERSION_TAG" >> "$GITHUB_ENV"
2334
- name: Build
2435
run: |
2536
docker pull alpine
26-
docker build -t demyx/${{ env.DEMYX_REPOSITORY }} .
37+
docker build -t demyx/${{ env.DEMYX_REPOSITORY }} -t demyx/${{ env.DEMYX_REPOSITORY }}:${{ env.DEMYX_VERSION_TAG }} .
2738
- name: Test
2839
id: test
2940
shell: 'script -q -e -c "bash {0}"'
@@ -62,3 +73,4 @@ jobs:
6273
fi
6374
6475
docker push demyx/${{ env.DEMYX_REPOSITORY }}
76+
docker push demyx/${{ env.DEMYX_REPOSITORY }}:${{ env.DEMYX_VERSION_TAG }}

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

3+
## 2026-05-25
4+
### Added
5+
- None.
6+
### Changed
7+
- Updated GitHub Actions Docker workflow to publish existing moving image tag(s) plus versioned tag(s) derived from `DEMYX_VERSION` from the `demyx` orchestrator.
8+
### Fixed
9+
- None.
10+
### Removed
11+
- None.
12+
### Security
13+
- None.
14+
15+
316
## 2026-05-09
417
### Added
518
- None.

0 commit comments

Comments
 (0)