From 2f5a2275d6d108f52ebe74ecef800d1b89b60d0b Mon Sep 17 00:00:00 2001 From: Bill Church Date: Thu, 22 Aug 2024 18:06:36 +0000 Subject: [PATCH] chore(release): 0.2.18 --- .../workflows/docker-multiplatform-tag.yml | 69 +++++++++++++++++++ ChangeLog.md | 11 +++ 2 files changed, 80 insertions(+) create mode 100644 .github/workflows/docker-multiplatform-tag.yml diff --git a/.github/workflows/docker-multiplatform-tag.yml b/.github/workflows/docker-multiplatform-tag.yml new file mode 100644 index 0000000..d844684 --- /dev/null +++ b/.github/workflows/docker-multiplatform-tag.yml @@ -0,0 +1,69 @@ +--- +name: 'Build Docker On Tag' + +on: + push: + branches: + - bigip-server + tags: + - 'v[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' + workflow_dispatch: # Allows manual triggering from the GitHub UI + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: 'Checkout' + uses: actions/checkout@v3 + + - name: Prepare + id: prep + run: | + DOCKER_IMAGE=${{ secrets.DOCKER_USERNAME }}/${GITHUB_REPOSITORY#*/} + + # If this is a git tag, use the tag name as a docker tag + if [[ $GITHUB_REF == refs/tags/* ]]; then + VERSION=${GITHUB_REF#refs/tags/v} + TAGS="${DOCKER_IMAGE}:${VERSION}" + fi + + # If this is a git branch, use the branch name as a docker tag + if [[ $GITHUB_REF == refs/heads/* ]]; then + VERSION=${GITHUB_REF#refs/heads/} + TAGS="${DOCKER_IMAGE}:${VERSION}" + fi + + # If the VERSION looks like a version number, also tag as 'latest' + if [[ $VERSION =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then + TAGS="$TAGS,${DOCKER_IMAGE}:latest" + fi + + # Set output parameters + echo ::set-output name=tags::${TAGS} + echo ::set-output name=docker_image::${DOCKER_IMAGE} + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + with: + platforms: all + + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to DockerHub + if: github.event_name != 'pull_request' + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Build + uses: docker/build-push-action@v4 + with: + builder: ${{ steps.buildx.outputs.name }} + context: . + file: ./Dockerfile + platforms: linux/amd64,linux/arm64,linux/ppc64le + push: true + tags: ${{ steps.prep.outputs.tags }} \ No newline at end of file diff --git a/ChangeLog.md b/ChangeLog.md index 64a14aa..babe498 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -2,6 +2,17 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. + +## [0.2.18](https://github.com/billchurch/WebSSH2/compare/v0.2.17...v0.2.18) (2024-08-22) + + +### Features + +* express.js session secret configurable in docker with WEBSSH_SESSION_SECRET env variable ([12e5431](https://github.com/billchurch/WebSSH2/commit/12e5431)) +* ssh keyboard-interactive authentication support ([0f3c7ab](https://github.com/billchurch/WebSSH2/commit/0f3c7ab)) + + + ## 0.2.17 (2024-08-22)