From 503c0022f820202b4e047f666bfee90bb4cef384 Mon Sep 17 00:00:00 2001 From: Gertjan Krol Date: Sun, 28 May 2023 21:19:06 +0200 Subject: [PATCH] Initial commit/release --- .forgejo/workflows/release.yaml | 22 ++++++++++++++++++++++ .forgejo/workflows/test-build.yaml | 19 +++++++++++++++++++ CHANGELOG.md | 7 +++++++ Dockerfile | 4 ++++ README.md | 1 + 5 files changed, 53 insertions(+) create mode 100644 .forgejo/workflows/release.yaml create mode 100644 .forgejo/workflows/test-build.yaml create mode 100644 CHANGELOG.md create mode 100644 Dockerfile create mode 100644 README.md diff --git a/.forgejo/workflows/release.yaml b/.forgejo/workflows/release.yaml new file mode 100644 index 0000000..ff4f338 --- /dev/null +++ b/.forgejo/workflows/release.yaml @@ -0,0 +1,22 @@ +name: Release +on: + push: + tags: + - '*' + +jobs: + build_push: + runs-on: ubuntu-latest + container: docker:latest + env: + REGISTRY: git.gertjankrol.nl + IMAGE_NAMESPACE: docker/toolkit + steps: + - name: Install dependencies # not present in `docker` container but needed for `checkout` action + run: apk add --no-cache git nodejs + - name: Check out repository + uses: actions/checkout@v3 + - name: Docker login + run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} https://${REGISTRY} + - name: Build and push container + run: docker build . -t ${REGISTRY}/${IMAGE_NAMESPACE}:${{ github.ref_name }} -t ${REGISTRY}/${IMAGE_NAMESPACE}:latest --push diff --git a/.forgejo/workflows/test-build.yaml b/.forgejo/workflows/test-build.yaml new file mode 100644 index 0000000..fba8164 --- /dev/null +++ b/.forgejo/workflows/test-build.yaml @@ -0,0 +1,19 @@ +name: Release +on: + push: + branches: + - '*' + +jobs: + test_build: + runs-on: ubuntu-latest + container: docker:latest + steps: + - name: Install dependencies # not present in `docker` container + run: apk add --no-cache git nodejs + - name: Check out repository + uses: actions/checkout@v3 + - name: Build containers + run: docker build . -t toolkit-test:${{ github.ref_name }} + - name: Inspect image + run: docker image inspect toolkit-test:${{ github.ref_name }} diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..3bd6a88 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,7 @@ +# Changelog +All notable changes to this package will be documented in this file + +## Unreleased + +## 1.0.0 - 2023-05-28 +- Initial release [major] diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a1af603 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM alpine:3.18 + +# Install base tools +RUN apk add --no-cache curl docker git htop nodejs npm unzip zip diff --git a/README.md b/README.md new file mode 100644 index 0000000..72481b7 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# Toolkit Docker image \ No newline at end of file