2 parents 8bf9940 + 24baddb commit 68cda66Copy full SHA for 68cda66
1 file changed
.github/workflows/docker-publish.yml
@@ -22,10 +22,19 @@ jobs:
22
username: ${{ secrets.DOCKER_USERNAME }}
23
password: ${{ secrets.DOCKER_PASSWORD }}
24
25
+ - name: Set version tag
26
+ id: version
27
+ run: |
28
+ VERSION=$(cat version.txt)
29
+ echo "Version from file: ${VERSION}"
30
+ echo "VERSION=${VERSION}" >> ${GITHUB_OUTPUT}
31
+
32
- name: Build and push Docker image (multi-arch)
33
uses: docker/build-push-action@v5
34
with:
35
context: .
36
platforms: linux/amd64,linux/arm64
37
push: true
- tags: ${{ secrets.DOCKER_USERNAME }}/speedtest-monitor:latest
38
+ tags:
39
+ ${{ secrets.DOCKER_USERNAME }}/speedtest-monitor:latest
40
+ ${{ secrets.DOCKER_USERNAME }}/speedtest-monitor:${{ steps.version.outputs.VERSION }}
0 commit comments