Skip to content
This repository has been archived by the owner on Feb 19, 2023. It is now read-only.

Commit

Permalink
Use jsii/superchain as parent (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
udondan authored Oct 7, 2020
1 parent be404e8 commit a810904
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 29 deletions.
17 changes: 1 addition & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,7 @@
FROM python:3.7.5-slim-buster
FROM jsii/superchain:latest

LABEL MAINTAINER="Daniel Schroeder <[email protected]>"

# Install nodejs, dotnet, mvn, twine etc
RUN apt-get update && \
apt-get install -y apt-transport-https gpg curl software-properties-common git ssh tar zip gzip ca-certificates && \
curl -s https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /etc/apt/trusted.gpg.d/microsoft.asc.gpg && \
curl -s https://packages.microsoft.com/config/debian/10/prod.list -o /etc/apt/sources.list.d/microsoft-prod.list && \
curl -sL https://deb.nodesource.com/setup_13.x | bash - && \
mkdir -p /usr/share/man/man1 && \
apt-get update && \
apt-get install -y dotnet-sdk-3.1 maven nodejs && \
pip3 install twine==3.1.1 && \
apt-get remove -y apt-transport-https gpg software-properties-common && \
rm /etc/apt/trusted.gpg.d/microsoft.asc.gpg /etc/apt/sources.list.d/microsoft-prod.list /etc/apt/sources.list.d/nodesource.list && \
apt-get autoremove -y && \
apt-get clean

ADD scripts /scripts

ENTRYPOINT [ "bash", "/scripts/entrypoint" ]
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
fetch-depth: 1

- name: Publish packages
uses: udondan/jsii-publish@v0.11.0
uses: udondan/jsii-publish@v0.12.0
with:
VERSION: ${{ steps.get_version.outputs.VERSION }}
BUILD_SOURCE: true
Expand Down Expand Up @@ -74,33 +74,33 @@ jobs:
fetch-depth: 1

- name: Build source
uses: udondan/jsii-publish@v0.11.0
uses: udondan/jsii-publish@v0.12.0
with:
VERSION: ${{ steps.get_version.outputs.VERSION }}
BUILD_SOURCE: true

- name: Build packages
uses: udondan/jsii-publish@v0.11.0
uses: udondan/jsii-publish@v0.12.0
with:
BUILD_PACKAGES: true

- name: Publish to npm
uses: udondan/jsii-publish@v0.11.0
uses: udondan/jsii-publish@v0.12.0
with:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish to PyPI
uses: udondan/jsii-publish@v0.11.0
uses: udondan/jsii-publish@v0.12.0
with:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}

- name: Publish to NuGet
uses: udondan/jsii-publish@v0.11.0
uses: udondan/jsii-publish@v0.12.0
with:
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}

- name: Publish to Maven GitHub
uses: udondan/jsii-publish@v0.11.0
uses: udondan/jsii-publish@v0.12.0
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
Expand All @@ -120,7 +120,7 @@ docker run -it \
--env NUGET_TOKEN \
--env GITHUB_TOKEN \
--env GITHUB_REPOSITORY="${OWNER}/${REPOSITORY}" \
udondan/jsii-publish:0.11.0
udondan/jsii-publish:0.12.0
```

The package code can be mounted to any location in the container. Just make sure you set the workdir to the same value. In the example above I use `/workdir`.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.11.0
0.12.0
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ branding:
color: orange
runs:
using: docker
image: docker://udondan/jsii-publish:0.11.0
image: docker://udondan/jsii-publish:0.12.0
inputs:
BUILD_SOURCE:
description: Indicates if the source should be build (tsc)
Expand Down
6 changes: 3 additions & 3 deletions scripts/entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ set -euo pipefail
IFS=$'\n\t'

export TERM=xterm
yellow=$(tput setaf 003)
normal=$(tput sgr0)
yellow="\e[33m"
normal="\e[39m"

print() {
echo "${yellow}$1${normal}"
echo -e "${yellow}$1${normal}"
}

begin() {
Expand Down

0 comments on commit a810904

Please sign in to comment.