2020-06-10 19:55:40 +09:00
|
|
|
name: Docker nightly build
|
|
|
|
|
|
|
|
on:
|
2021-04-12 12:10:50 +09:00
|
|
|
schedule:
|
|
|
|
- cron: '0 1 * * *'
|
2020-06-10 19:55:40 +09:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2021-03-31 15:32:53 +09:00
|
|
|
- name: Setup QEMU
|
|
|
|
uses: docker/setup-qemu-action@v1
|
2020-06-10 19:55:40 +09:00
|
|
|
|
2021-03-31 15:32:53 +09:00
|
|
|
- name: Setup Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v1
|
2020-06-10 19:55:40 +09:00
|
|
|
|
2021-03-31 15:47:13 +09:00
|
|
|
- name: Login to GitHub Container Registry
|
2021-03-31 15:32:53 +09:00
|
|
|
uses: docker/login-action@v1
|
|
|
|
with:
|
2021-03-31 15:47:13 +09:00
|
|
|
registry: ghcr.io
|
2021-04-11 15:09:45 +09:00
|
|
|
username: ${{ secrets.GH_CONTAINER_UNAME }}
|
2021-04-08 11:48:41 +09:00
|
|
|
password: ${{ secrets.GH_TOKEN }}
|
2021-03-31 15:32:53 +09:00
|
|
|
|
2021-04-12 12:00:04 +09:00
|
|
|
- name: Build and push alpine
|
2021-03-31 15:32:53 +09:00
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
file: alpine.Dockerfile
|
|
|
|
platforms: linux/amd64,linux/arm64
|
|
|
|
push: true
|
2021-03-31 15:47:13 +09:00
|
|
|
tags: ghcr.io/${{ github.repository }}/nodejs-rust:lts-alpine
|
2021-04-12 12:00:04 +09:00
|
|
|
|
|
|
|
- name: Build and push debian
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
file: debian.Dockerfile
|
2021-07-21 12:19:56 +09:00
|
|
|
platforms: linux/amd64
|
2021-04-12 12:00:04 +09:00
|
|
|
push: true
|
|
|
|
tags: ghcr.io/${{ github.repository }}/nodejs-rust:lts-debian
|