napi-rs/.github/workflows/docker.yaml

35 lines
869 B
YAML
Raw Normal View History

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
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
2021-03-31 15:32:53 +09:00
- name: Setup QEMU
uses: docker/setup-qemu-action@v1
2021-03-31 15:32:53 +09:00
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v1
2021-03-31 15:32:53 +09:00
- name: Login to GitHub Packages Docker Registry
uses: docker/login-action@v1
with:
registry: docker.pkg.github.com
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
file: alpine.Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: docker.pkg.github.com/${{ github.repository }}/nodejs-rust:lts-alpine