Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

change tagname of docker image

Amruth Pillai668d39fa8733
diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml
index 604b5d561..fbb26dab3 100644
--- a/.github/workflows/docker-build.yml
+++ b/.github/workflows/docker-build.yml
@@ -1,4 +1,4 @@
-name: Build and Push Docker Image
+name: Build Docker Image
on: pull_request
@@ -18,6 +18,10 @@ jobs:
with:
fetch-depth: 2
+ - id: vars
+ name: Get Short SHA
+ run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
+
- name: Set up QEMU
uses: docker/[email protected]
@@ -40,9 +44,9 @@ jobs:
platforms: linux/amd64,linux/arm64
tags: |
amruthpillai/reactive-resume:client-latest
- amruthpillai/reactive-resume:client-${{ steps.version.outputs.tag }}
+ amruthpillai/reactive-resume:client-${{ steps.vars.outputs.sha_short }}
ghcr.io/amruthpillai/reactive-resume:client-latest
- ghcr.io/amruthpillai/reactive-resume:client-${{ steps.version.outputs.tag }}
+ ghcr.io/amruthpillai/reactive-resume:client-${{ steps.vars.outputs.sha_short }}
server:
name: Server
@@ -81,6 +85,6 @@ jobs:
platforms: linux/amd64,linux/arm64
tags: |
amruthpillai/reactive-resume:server-latest
- amruthpillai/reactive-resume:server-${{ steps.version.outputs.tag }}
+ amruthpillai/reactive-resume:server-${{ steps.vars.outputs.sha_short }}
ghcr.io/amruthpillai/reactive-resume:server-latest
- ghcr.io/amruthpillai/reactive-resume:server-${{ steps.version.outputs.tag }}
+ ghcr.io/amruthpillai/reactive-resume:server-${{ steps.vars.outputs.sha_short }}