Skip to content

Commit

Permalink
Update with-docker-alpine-cache.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AshanFernando committed Sep 18, 2024
1 parent 280d0f5 commit 81d47e6
Showing 1 changed file with 98 additions and 98 deletions.
196 changes: 98 additions & 98 deletions .github/workflows/with-docker-alpine-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,101 +38,101 @@ jobs:
run: |
docker load -i /tmp/.docker-cache/bitsrc-stable-latest-alpine.tar
build:
needs: cache-docker # This makes the build job depend on the cache-docker job
runs-on: ubuntu-latest
container:
image: bitsrc/stable:latest-alpine
options: --user root
timeout-minutes: 20
env:
BIT_CONFIG_ACCESS_TOKEN: ${{ secrets.BIT_CONFIG_ACCESS_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Verify Node.js installation
run: node -v

- name: Verify Git installation
run: git -v

- name: Initialize Bit
uses: bit-tasks/init@main
with:
ws-dir: "test-data"
docker: "true"
log: "trace"

- name: Resolve component packages from bit.cloud registry (Mandatory for component installation using package managers other than Bit)
run: |
npm config set '@bit:registry' https://node-registry.bit.cloud
npm config set '@teambit:registry' https://node-registry.bit.cloud
npm config set //node-registry.bit.cloud/:_authToken ${{ env.BIT_CONFIG_ACCESS_TOKEN }}
- name: Installed Node version test
run: |
node -v
- name: Installed Bit version test
run: |
bit -v
- name: Installed Bit location test
run: |
which bit
- name: Bit token test
run: echo "$(bit config get user.token)"

- name: Bit workspace directory environment variable test
run: |
echo $WSDIR
- name: Ripple CI environment variable test
run: |
echo $RIPPLE
- name: Log environment variable test
run: |
echo $LOG
- name: Cache environment variable test
run: |
echo $CACHE
- name: Bit org environment variable test
run: |
echo $ORG
- name: Bit scope environment variable test
run: |
echo $SCOPE
- name: Bit analytics reporting environment variable test
run: |
echo $BIT_CONFIG_ANALYTICS_REPORTING
- name: Bit anonymous reporting environment variable test
run: |
echo $BIT_CONFIG_ANONYMOUS_REPORTING
- name: Bit interactive environment variable test
run: |
echo $BIT_CONFIG_INTERACTIVE
- name: Bit user token environment variable test
run: |
echo $BIT_CONFIG_ACCESS_TOKEN
- name: Bit path environment variable test
run: |
echo $PATH
- name: Bit console environment variable test
run: |
echo $BIT_DISABLE_CONSOLE
- name: Bit spinner environment variable test
run: |
echo $BIT_DISABLE_SPINNER
# build:
# needs: cache-docker # This makes the build job depend on the cache-docker job
# runs-on: ubuntu-latest
# container:
# image: bitsrc/stable:latest-alpine
# options: --user root
# timeout-minutes: 20
# env:
# BIT_CONFIG_ACCESS_TOKEN: ${{ secrets.BIT_CONFIG_ACCESS_TOKEN }}
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4

# - name: Verify Node.js installation
# run: node -v

# - name: Verify Git installation
# run: git -v

# - name: Initialize Bit
# uses: bit-tasks/init@main
# with:
# ws-dir: "test-data"
# docker: "true"
# log: "trace"

# - name: Resolve component packages from bit.cloud registry (Mandatory for component installation using package managers other than Bit)
# run: |
# npm config set '@bit:registry' https://node-registry.bit.cloud
# npm config set '@teambit:registry' https://node-registry.bit.cloud
# npm config set //node-registry.bit.cloud/:_authToken ${{ env.BIT_CONFIG_ACCESS_TOKEN }}

# - name: Installed Node version test
# run: |
# node -v

# - name: Installed Bit version test
# run: |
# bit -v

# - name: Installed Bit location test
# run: |
# which bit

# - name: Bit token test
# run: echo "$(bit config get user.token)"

# - name: Bit workspace directory environment variable test
# run: |
# echo $WSDIR

# - name: Ripple CI environment variable test
# run: |
# echo $RIPPLE

# - name: Log environment variable test
# run: |
# echo $LOG

# - name: Cache environment variable test
# run: |
# echo $CACHE

# - name: Bit org environment variable test
# run: |
# echo $ORG

# - name: Bit scope environment variable test
# run: |
# echo $SCOPE

# - name: Bit analytics reporting environment variable test
# run: |
# echo $BIT_CONFIG_ANALYTICS_REPORTING

# - name: Bit anonymous reporting environment variable test
# run: |
# echo $BIT_CONFIG_ANONYMOUS_REPORTING

# - name: Bit interactive environment variable test
# run: |
# echo $BIT_CONFIG_INTERACTIVE

# - name: Bit user token environment variable test
# run: |
# echo $BIT_CONFIG_ACCESS_TOKEN

# - name: Bit path environment variable test
# run: |
# echo $PATH

# - name: Bit console environment variable test
# run: |
# echo $BIT_DISABLE_CONSOLE

# - name: Bit spinner environment variable test
# run: |
# echo $BIT_DISABLE_SPINNER

0 comments on commit 81d47e6

Please sign in to comment.