This commit is contained in:
commit
fc384b7850
5 changed files with 58 additions and 0 deletions
1
.dockerignore
Normal file
1
.dockerignore
Normal file
|
@ -0,0 +1 @@
|
|||
tags.txt
|
25
.woodpecker/build-docker.yml
Normal file
25
.woodpecker/build-docker.yml
Normal file
|
@ -0,0 +1,25 @@
|
|||
when:
|
||||
- event: manual
|
||||
- event: cron
|
||||
cron: build_weekly
|
||||
|
||||
steps:
|
||||
set-tags:
|
||||
image: debian:12
|
||||
commands:
|
||||
- export TS=`date '+%Y%m%d'`
|
||||
- echo "$TS" >> tags.txt
|
||||
- echo "latest" >> tags.txt
|
||||
- cat tags.txt
|
||||
|
||||
deploy-dockerhub:
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
|
||||
repo: docker.io/lauralani/staticwebapps-cli
|
||||
registry: docker.io
|
||||
tags_file: ./tags.txt
|
||||
username: lauralani
|
||||
password:
|
||||
from_secret: docker_token
|
10
Dockerfile
Normal file
10
Dockerfile
Normal file
|
@ -0,0 +1,10 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
|
||||
FROM node:20
|
||||
ENV NODE_ENV=production
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN npm install -g @azure/static-web-apps-cli
|
||||
|
||||
COPY . .
|
21
LICENSE
Normal file
21
LICENSE
Normal file
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2023 lauralani
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
1
README.md
Normal file
1
README.md
Normal file
|
@ -0,0 +1 @@
|
|||
# netlify-cli-docker
|
Loading…
Reference in a new issue