Skip to content

Commit

Permalink
chore: Update GitHub Actions workflow to specify node version for cod…
Browse files Browse the repository at this point in the history
…e checkout and Docker login (#37)
  • Loading branch information
drbarzaga authored May 5, 2024
1 parent b9cd5b5 commit e7cd01c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ jobs:
build-and-deploy:
# This is telling GitHub to run the workflow on the latest version of Ubuntu.
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
# Checkout the code from the GitHub repository
- name: Checkout code
uses: actions/checkout@v2
with:
node-version: 20.x
uses: actions/checkout@v4

# Install dependencies and run tests for the client application
- name: Install Client
Expand Down Expand Up @@ -53,9 +54,7 @@ jobs:
# Login to Docker Hub using credentials from repository secrets
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
node-version: 20.x
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
Expand Down

0 comments on commit e7cd01c

Please sign in to comment.