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!

modify docker-build-push action

Amruth Pillaic14c9955ddd1
diff --git a/.github/workflows/docker-build-push.yml b/.github/workflows/docker-build-push.yml
index 5ff6fe915..e388e722a 100644
--- a/.github/workflows/docker-build-push.yml
+++ b/.github/workflows/docker-build-push.yml
@@ -21,7 +21,7 @@ jobs:
- id: version
name: Get Version
- run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
+ run: echo "version=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Set up QEMU
uses: docker/[email protected]
@@ -54,9 +54,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-${{ env.version }}
ghcr.io/amruthpillai/reactive-resume:client-latest
- ghcr.io/amruthpillai/reactive-resume:client-${{ steps.version.outputs.tag }}
+ ghcr.io/amruthpillai/reactive-resume:client-${{ env.version }}
server:
name: Server
@@ -74,7 +74,7 @@ jobs:
- id: version
name: Get Version
- run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
+ run: echo "version=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Set up QEMU
uses: docker/[email protected]
@@ -107,6 +107,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-${{ env.version }}
ghcr.io/amruthpillai/reactive-resume:server-latest
- ghcr.io/amruthpillai/reactive-resume:server-${{ steps.version.outputs.tag }}
+ ghcr.io/amruthpillai/reactive-resume:server-${{ env.version }}
diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml
deleted file mode 100644
index 20759f1fd..000000000
--- a/.github/workflows/docker-build.yml
+++ /dev/null
@@ -1,84 +0,0 @@
-name: Build Docker Image
-
-on: pull_request
-
-jobs:
- client:
- name: Client
- runs-on: ubuntu-latest
-
- env:
- TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
- TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
-
- steps:
- - name: Checkout the repository
- uses: actions/[email protected]
- with:
- fetch-depth: 2
-
- - name: Set up QEMU
- uses: docker/[email protected]
-
- - id: buildx
- name: Set up Docker Buildx
- uses: docker/[email protected]
- with:
- install: true
-
- - id: variables
- name: Get Short SHA
- run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
-
- - name: Build Client Image
- uses: docker/[email protected]
- with:
- context: .
- push: false
- file: client/Dockerfile
- platforms: linux/amd64,linux/arm64
- tags: |
- amruthpillai/reactive-resume:client-latest
- amruthpillai/reactive-resume:client-${{ steps.variables.outputs.sha_short }}
- ghcr.io/amruthpillai/reactive-resume:client-latest
- ghcr.io/amruthpillai/reactive-resume:client-${{ steps.variables.outputs.sha_short }}
-
- server:
- name: Server
- runs-on: ubuntu-latest
-
- env:
- TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
- TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
-
- steps:
- - name: Checkout the repository
- uses: actions/[email protected]
- with:
- fetch-depth: 2
-
- - name: Set up QEMU
- uses: docker/[email protected]
-
- - id: buildx
- name: Set up Docker Buildx
- uses: docker/[email protected]
- with:
- install: true
-
- - id: variables
- name: Get Short SHA
- run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
-
- - name: Build Server Image
- uses: docker/[email protected]
- with:
- context: .
- push: false
- file: server/Dockerfile
- platforms: linux/amd64,linux/arm64
- tags: |
- amruthpillai/reactive-resume:server-latest
- amruthpillai/reactive-resume:server-${{ steps.variables.outputs.sha_short }}
- ghcr.io/amruthpillai/reactive-resume:server-latest
- ghcr.io/amruthpillai/reactive-resume:server-${{ steps.variables.outputs.sha_short }}