From e7cc42de8206ce7c326df8f649b822af7c011a73 Mon Sep 17 00:00:00 2001 From: thim81 Date: Sat, 14 Jan 2023 16:30:45 +0100 Subject: [PATCH] postman-to-k6 as a Docker image (#91) Co-authored-by: Tim Haselaars <> --- .github/workflows/build-docker.yml | 22 ++++++++++++++++++++++ CHANGELOG.md | 2 ++ Dockerfile | 2 +- 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build-docker.yml diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml new file mode 100644 index 0000000..849ae17 --- /dev/null +++ b/.github/workflows/build-docker.yml @@ -0,0 +1,22 @@ +name: Publish image +on: + release: + types: [released] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Login to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push ghcr.io + id: build-and-push + uses: docker/build-push-action@v3.1.0 + with: + push: true + tags: ghcr.io/${{ github.repository }}:latest diff --git a/CHANGELOG.md b/CHANGELOG.md index 3561744..50756f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased](https://github.com/apideck-libraries/postman-to-k6/compare/v1.8.5...HEAD) +- Build postman-to-k6 as a Docker image + ## [1.8.6] - 2022-11-12 ### Security diff --git a/Dockerfile b/Dockerfile index d8d127d..d74214e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:11-alpine +FROM node:lts-alpine RUN mkdir -p /home/node/postman-to-k6/node_modules && chown -R node:node /home/node/postman-to-k6 WORKDIR /home/node/postman-to-k6