From d977860cded7dff9fd2796c80b3f2af32ba10dc9 Mon Sep 17 00:00:00 2001 From: Nexus Date: Sat, 4 May 2024 19:34:26 +0100 Subject: [PATCH] test pushing per-commit images versioning! --- .gitea/workflows/docker-publish.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/docker-publish.yaml b/.gitea/workflows/docker-publish.yaml index 899d478..7ce6682 100644 --- a/.gitea/workflows/docker-publish.yaml +++ b/.gitea/workflows/docker-publish.yaml @@ -10,10 +10,10 @@ jobs: uses: actions/checkout@v4 - name: Build Docker image run: | - docker build -t git.i-am.nexus/nex/college-bot:latest . + docker build -t git.i-am.nexus/nex/college-bot:latest -t git.i-am.nexus/nex/college-bot:$(git rev-parse --short "$GITHUB_SHA") . - name: Log into container registry run: | docker login -u ${{ secrets.CR_USERNAME }} -p ${{ secrets.CR_PASSWORD }} git.i-am.nexus - name: Push to container registry run: | - docker push git.i-am.nexus/nex/college-bot:latest \ No newline at end of file + docker push git.i-am.nexus/nex/college-bot:latest && docker push git.i-am.nexus/nex/college-bot:$(git rev-parse --short "$GITHUB_SHA") \ No newline at end of file