Skip to content

Commit

Permalink
ci: update gh actions versions
Browse files Browse the repository at this point in the history
  • Loading branch information
petarpeshev authored and akalogerakisunicorn committed Oct 15, 2024
1 parent e6e76b6 commit 63f070d
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 31 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/contract-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@master
- name: Use Node.js 16.x
uses: actions/setup-node@v1
- name: Use Node.js 20.x
uses: actions/setup-node@v4.0.4
with:
node-version: 16.x
node-version: 20.x
- run: |
cd contract
npm ci
npx aeproject env --nodeVersion v6.6.0 --compilerVersion v6.1.0 && sleep 3
npx aeproject test
npx aeproject test
6 changes: 3 additions & 3 deletions .github/workflows/dev-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,21 @@ jobs:
echo GIT_SHA=$(git rev-parse --short HEAD) >> $GITHUB_OUTPUT
- name: Log in to dockerhub
uses: docker/login-action@v1
uses: docker/login-action@v3.3.0
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASS }}

- name: Extract metadata for docker
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5.5.1
with:
images: aeternitybot/state-channel-demo-backend
tags: |
type=raw,value=develop,enable=${{ endsWith(GitHub.ref, 'develop') }}
- name: Build and push docker image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v6.7.0
with:
context: .
file: ./server/Dockerfile
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/dev-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
install: true

- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
# Key is named differently to avoid collision
Expand All @@ -47,21 +47,21 @@ jobs:
echo GIT_SHA=$(git rev-parse --short HEAD) >> $GITHUB_OUTPUT
- name: Log in to dockerhub
uses: docker/login-action@v1
uses: docker/login-action@v3.3.0
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASS }}

- name: Extract metadata for docker
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5.5.1
with:
images: aeternitybot/state-channel-demo-frontend
tags: |
type=raw,value=develop,enable=${{ endsWith(GitHub.ref, 'develop') }}
- name: Build and push docker image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v6.7.0
with:
context: .
file: ./client/Dockerfile
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/prd-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
install: true

- name: Cache Docker layers
uses: actions/cache@v3
uses: actions/cache@v4.0.2
with:
path: /tmp/.buildx-cache
# Key is named differently to avoid collision
Expand All @@ -47,15 +47,15 @@ jobs:
echo GIT_SHA=$(git rev-parse --short HEAD) >> $GITHUB_OUTPUT
- name: Log in to dockerhub
uses: docker/login-action@v1
uses: docker/login-action@v3.3.0
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASS }}

- name: Extract metadata for docker
if: github.event_name == 'push'
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5.5.1
with:
images: aeternitybot/state-channel-demo-backend
tags: |
Expand All @@ -65,7 +65,7 @@ jobs:
if: |
github.event_name == 'push' ||
startsWith(github.ref, 'refs/tags/v')
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6.7.0
with:
context: .
file: ./server/Dockerfile
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/prd-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
install: true

- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v4.0.2
with:
path: /tmp/.buildx-cache
# Key is named differently to avoid collision
Expand All @@ -40,7 +40,7 @@ jobs:
${{ runner.os }}-${{ env.ENV }}-buildx
- name: Log in to dockerhub
uses: docker/login-action@v1
uses: docker/login-action@v3.3.0
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASS }}
Expand All @@ -55,15 +55,15 @@ jobs:
- name: Extract metadata for docker
if: github.event_name == 'push'
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5.5.1
with:
images: aeternitybot/state-channel-demo-frontend
tags: |
type=raw,value=latest,enable=${{ endsWith(GitHub.ref, 'main') }}
- name: Build and push docker image
if: github.event_name == 'push'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6.7.0
with:
context: .
file: ./client/Dockerfile
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
repository: aeternity/gitops-apps.git
ref: prd
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/stg-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
install: true

- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v4.0.2
with:
path: /tmp/.buildx-cache
# Key is named differently to avoid collision
Expand All @@ -41,15 +41,15 @@ jobs:
${{ runner.os }}-${{ env.ENV }}-buildx
- name: Log in to dockerhub
uses: docker/login-action@v1
uses: docker/login-action@v3.3.0
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASS }}

- name: Extract metadata for docker
if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize'
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5.5.1
with:
images: aeternitybot/state-channel-demo-backend
tags: |
Expand All @@ -64,7 +64,7 @@ jobs:
- name: Build and push docker image
if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6.7.0
with:
context: .
file: ./server/Dockerfile
Expand All @@ -85,7 +85,7 @@ jobs:
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
repository: aeternity/gitops-apps-aelabs.git
token: ${{ secrets.BOT_GITHUB_TOKEN }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/stg-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
install: true

- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v4.0.2
with:
path: /tmp/.buildx-cache
# Key is named differently to avoid collision
Expand All @@ -41,15 +41,15 @@ jobs:
${{ runner.os }}-${{ env.ENV }}-buildx
- name: Log in to dockerhub
uses: docker/login-action@v1
uses: docker/login-action@v3.3.0
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASS }}

- name: Extract metadata for docker
if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize'
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5.5.1
with:
images: aeternitybot/state-channel-demo-frontend
tags: |
Expand All @@ -64,7 +64,7 @@ jobs:
- name: Build and push docker image
if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6.7.0
with:
context: .
file: ./client/Dockerfile
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
repository: aeternity/gitops-apps-aelabs.git
token: ${{ secrets.BOT_GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
name: State Channel Demo Tests
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 100

Expand Down

0 comments on commit 63f070d

Please sign in to comment.