Skip to content

Commit

Permalink
fix: failing github ci
Browse files Browse the repository at this point in the history
  • Loading branch information
lotyp committed Feb 22, 2023
1 parent f46dacf commit c1c4317
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 16 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v3.3.0

- name: Generate dist files
run: make generate

- name: Set Environment Variables
env:
IMAGE_NAMESPACE: wayofdev/node
Expand Down Expand Up @@ -75,6 +78,16 @@ jobs:
with:
install: true

- name: Set tag for Docker Release Image
if: success() && startsWith(github.ref, 'refs/tags/')
run: |
echo "IMAGE_TAG=${{ env.IMAGE_NAMESPACE }}:${{ env.TEMPLATE }}-${{ env.VERSION }}" >> $GITHUB_ENV
- name: Set tag for Docker Master Image
if: success() && ! startsWith(github.ref, 'refs/tags/')
run: |
echo "IMAGE_TAG=${{ env.IMAGE_NAMESPACE }}:${{ env.TEMPLATE }}-latest" >> $GITHUB_ENV
- name: Build and Export to Docker
uses: docker/build-push-action@v4
with:
Expand All @@ -85,17 +98,9 @@ jobs:
cache-to: type=inline
labels: ${{ steps.meta.outputs.labels }}

- name: Test Docker Release Image
if: success() && startsWith(github.ref, 'refs/tags/')
- name: Test Docker Image
run: |
echo "IMAGE_TAG=${{ env.IMAGE_NAMESPACE }}:${{ env.TEMPLATE }}-${{ env.VERSION }}" >> $GITHUB_ENV
IMAGE_TAG=${{ env.IMAGE_TAG }} make test
- name: Test Docker Master Image
if: success() && ! startsWith(github.ref, 'refs/tags/')
run: |
echo "IMAGE_TAG=${{ env.IMAGE_NAMESPACE }}:${{ env.TEMPLATE }}-latest" >> $GITHUB_ENV
IMAGE_TAG=${{ env.IMAGE_TAG }} make test
export IMAGE_TAG=${{ env.IMAGE_TAG }}; make test
- name: Push Docker Image
uses: docker/build-push-action@v4
Expand Down
4 changes: 2 additions & 2 deletions dist/18-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ RUN set -eux; \
libc6-compat \
&& ARCH=$(uname -m) && \
if [ "$ARCH" = "x86_64" ]; then \
curl -fsSL "https://github.com/pnpm/pnpm/releases/download/v7.26.1/pnpm-linuxstatic-x64" -o /bin/pnpm; \
curl -fsSL "https://github.com/pnpm/pnpm/releases/download/v7.25.0/pnpm-linuxstatic-x64" -o /bin/pnpm; \
elif [ "$ARCH" = "aarch64" ]; then \
curl -fsSL "https://github.com/pnpm/pnpm/releases/download/v7.26.1/pnpm-linuxstatic-arm64" -o /bin/pnpm; \
curl -fsSL "https://github.com/pnpm/pnpm/releases/download/v7.25.0/pnpm-linuxstatic-arm64" -o /bin/pnpm; \
fi \
&& chmod +x /bin/pnpm \
&& yarn global add turbo
4 changes: 2 additions & 2 deletions dist/19-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ RUN set -eux; \
libc6-compat \
&& ARCH=$(uname -m) && \
if [ "$ARCH" = "x86_64" ]; then \
curl -fsSL "https://github.com/pnpm/pnpm/releases/download/v7.26.1/pnpm-linuxstatic-x64" -o /bin/pnpm; \
curl -fsSL "https://github.com/pnpm/pnpm/releases/download/v7.25.0/pnpm-linuxstatic-x64" -o /bin/pnpm; \
elif [ "$ARCH" = "aarch64" ]; then \
curl -fsSL "https://github.com/pnpm/pnpm/releases/download/v7.26.1/pnpm-linuxstatic-arm64" -o /bin/pnpm; \
curl -fsSL "https://github.com/pnpm/pnpm/releases/download/v7.25.0/pnpm-linuxstatic-arm64" -o /bin/pnpm; \
fi \
&& chmod +x /bin/pnpm \
&& yarn global add turbo
4 changes: 2 additions & 2 deletions dist/lts-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ RUN set -eux; \
libc6-compat \
&& ARCH=$(uname -m) && \
if [ "$ARCH" = "x86_64" ]; then \
curl -fsSL "https://github.com/pnpm/pnpm/releases/download/v7.26.1/pnpm-linuxstatic-x64" -o /bin/pnpm; \
curl -fsSL "https://github.com/pnpm/pnpm/releases/download/v7.25.0/pnpm-linuxstatic-x64" -o /bin/pnpm; \
elif [ "$ARCH" = "aarch64" ]; then \
curl -fsSL "https://github.com/pnpm/pnpm/releases/download/v7.26.1/pnpm-linuxstatic-arm64" -o /bin/pnpm; \
curl -fsSL "https://github.com/pnpm/pnpm/releases/download/v7.25.0/pnpm-linuxstatic-arm64" -o /bin/pnpm; \
fi \
&& chmod +x /bin/pnpm \
&& yarn global add turbo

0 comments on commit c1c4317

Please sign in to comment.