Skip to content

Commit

Permalink
fix: Possible fix for Github actions stuck v2
Browse files Browse the repository at this point in the history
  • Loading branch information
RARgames committed Dec 30, 2023
1 parent 109bffd commit 7dec525
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-and-push-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,30 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3.0.0

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3.0.0

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v3.0.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set version
uses: actions/github-script@v6
uses: actions/github-script@v7.0.1
id: set-version
with:
result-encoding: string
script: return context.payload.release.tag_name.replace('v', '')

- name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5.1.0
with:
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v7
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ WORKDIR /app

COPY server/package.json server/package-lock.json .

RUN npm install npm@latest --global --no-cache
RUN npm install pnpm --global --no-cache
RUN npm install npm@latest --global
RUN npm install pnpm --global
RUN pnpm import
RUN pnpm install --prod

Expand All @@ -15,8 +15,8 @@ WORKDIR /app

COPY client/package.json client/package-lock.json .

RUN npm install npm@latest --global --no-cache
RUN npm install pnpm --global --no-cache
RUN npm install npm@latest --global
RUN npm install pnpm --global
RUN pnpm import
RUN pnpm install --prod

Expand Down

0 comments on commit 7dec525

Please sign in to comment.