From c3f55fa9f39709e0823e9525f8613f416955b21b Mon Sep 17 00:00:00 2001 From: Axel Schwab Date: Sun, 1 Dec 2024 15:42:42 +0100 Subject: [PATCH] add version tag to each step --- .github/workflows/pipeline.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 04989a7..fc0b3b4 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -20,6 +20,7 @@ jobs: docker build . -t ${{ vars.DOCKER_HUB_USERNAME }}/backup:latest - name: build docker image ${VERSION} run: | + VERSION=$(cat VERSION | tr -d ' \t\n\r') cd docker docker build . -t ${{ vars.DOCKER_HUB_USERNAME }}/backup:${VERSION} - name: Login to Docker Hub @@ -34,6 +35,7 @@ jobs: username: ${{ vars.DOCKER_HUB_USERNAME }} - name: push ${VERSION} run: | + VERSION=$(cat VERSION | tr -d ' \t\n\r') docker push ${{ vars.DOCKER_HUB_USERNAME }}/backup:${VERSION} env: username: ${{ vars.DOCKER_HUB_USERNAME }}