Skip to content

Commit

Permalink
add step
Browse files Browse the repository at this point in the history
  • Loading branch information
raissabrizeno committed Aug 9, 2024
1 parent cc1e0ff commit 4add489
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions workflows/github-actions-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,24 @@ jobs:
build:

runs-on: ubuntu-latest
defaults:
run:
working-directory: ./exercicios/para-sala/users-api-aula

strategy:
matrix:
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- name: checkout
uses: actions/checkout@v4
with:
path: ecercicios/para-sala/users-api-aula

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- run: npm ci
- run: npm run build --if-present
- run: npm test
Expand All @@ -30,11 +37,13 @@ jobs:
with:
username: raissabrizeno
password: dckr_pat_FA_dtQWNNB6w7ki2NTKNTwB76U4


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

- name: Build and push
id: buildx
uses: docker/setup-buildx-action@v3
with:
context: ./
context: exercicios/para-sala/users-api-aula
push: true
tags: raissabrizeno/users-api-aula:1.0.0

0 comments on commit 4add489

Please sign in to comment.