Files
node-docker-broken/.github/workflows/example1.yaml
deltreey 0723c9e5dc
Some checks failed
Build / Build-And-Push (push) Failing after 24s
what is the home directory
2024-04-19 11:33:33 -05:00

30 lines
799 B
YAML

name: Build
on: [ push ]
jobs:
Build-And-Push:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup NVM
run: |
echo $HOME
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
echo "Installed..."
nvm install v8.17.0
nvm use
- name: Configure NVM again
run: |
nvm install node
nvm use node
- name: "Build & push Docker image"
uses: mr-smithers-excellent/docker-build-push@v6.3
with:
registry: ghcr.io
image: deltreey/node-docker-broken
tags: latest
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}