Добрый день! Подскажите как настроить Github actions для node.js проекта и контейниризации в docker.
1. Установил секреты в настройках репозитория
2. Создал файл в:
.github/workflows/push.ymlon: push
name: npm build, lint, test and publish
jobs:
build-and-publish:
name: build and publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: npm install
uses: actions/npm@master
with:
args: install
- name: npm test
uses: actions/npm@master
with:
args: run test
- name: npm lint
uses: actions/npm@master
with:
args: run lint
- name: docker build
uses: actions/docker/cli@master
with:
args: build -t Vaflya/Project .
- name: docker login
uses: actions/docker/login@master
env:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
- name: docker push
uses: actions/docker/cli@master
with:
args: push Vaflya/Project
Логги на github:
Current runner version: '2.163.1'
Prepare workflow directory
Prepare all required actions
Download action repository 'actions/checkout@master'
Download action repository 'actions/npm@master'
##[warning]Failed to download action 'https://api.github.com/repos/actions/npm/tarball/master'. Error Response status code does not indicate success: 404 (Not Found).
##[warning]Back off 26.98 seconds before retry.
##[warning]Failed to download action 'https://api.github.com/repos/actions/npm/tarball/master'. Error Response status code does not indicate success: 404 (Not Found).
##[warning]Back off 20.185 seconds before retry.
##[error]Response status code does not indicate success: 404 (Not Found).
p.s.: Делал по статье на Medium
тут