commit fc384b7850a5a9b3adb185d54b00619f2e84ea47 Author: lauralani Date: Mon Aug 28 15:34:35 2023 +0200 initial commit diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..db2aef4 --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +tags.txt \ No newline at end of file diff --git a/.woodpecker/build-docker.yml b/.woodpecker/build-docker.yml new file mode 100644 index 0000000..9efb67f --- /dev/null +++ b/.woodpecker/build-docker.yml @@ -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 \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ae36d47 --- /dev/null +++ b/Dockerfile @@ -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 . . \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..249a3eb --- /dev/null +++ b/LICENSE @@ -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. diff --git a/README.md b/README.md new file mode 100644 index 0000000..8b310f4 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# netlify-cli-docker \ No newline at end of file