2020-06-10 19:55:40 +09:00
|
|
|
name: Docker nightly build
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 1 * * *'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_image:
|
2021-03-19 12:53:48 +09:00
|
|
|
name: Build nodejs-rust:lts-alpine
|
2020-06-10 19:55:40 +09:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
2020-06-12 12:00:27 +09:00
|
|
|
- name: Login to registry
|
|
|
|
run: |
|
|
|
|
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD $DOCKER_REGISTRY_URL
|
2020-06-10 19:55:40 +09:00
|
|
|
env:
|
|
|
|
DOCKER_REGISTRY_URL: docker.pkg.github.com
|
|
|
|
DOCKER_USERNAME: ${{ github.actor }}
|
|
|
|
DOCKER_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
- name: Build docker image
|
|
|
|
run: |
|
2021-03-19 12:53:48 +09:00
|
|
|
docker build . -f alpine.Dockerfile --pull --no-cache -t docker.pkg.github.com/napi-rs/napi-rs/nodejs-rust:lts-alpine
|
2020-06-10 19:55:40 +09:00
|
|
|
|
|
|
|
- name: Push docker image
|
2020-10-14 17:15:20 +09:00
|
|
|
run: |
|
2021-03-19 12:53:48 +09:00
|
|
|
docker push docker.pkg.github.com/napi-rs/napi-rs/nodejs-rust:lts-alpine
|