Skip to content

Commit

Permalink
feat: v1.3.0 released
Browse files Browse the repository at this point in the history
Signed-off-by: Homing So <i@homing.so>
  • Loading branch information
hominsu committed May 23, 2024
1 parent ba587f6 commit 0b72720
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ jobs:
strategy:
matrix:
registry: ${{fromJSON(needs.set-matrix.outputs.matrix)}}
alpine: [ 3.16, 3.17 ]

env:
id: ${{ secrets[matrix.registry.id] }}
Expand All @@ -43,28 +42,28 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Log into Registry ${{ matrix.registry.name }}
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ matrix.registry.registry }}
username: ${{ env.id }}
password: ${{ env.token }}

- name: Set Up QEMU
id: qemu
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

- name: Set Up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
install: true

- name: Build and Push ${{ matrix.registry.name }}
run: |
REPO=${{ matrix.registry.push_link }} ALPINE_VERSION=${{ matrix.alpine }} VERSION=${{ needs.set-matrix.outputs.git_tag }} docker buildx bake --file docker/docker-bake.hcl --push --set "*.platform=linux/arm64,linux/amd64,linux/s390x,linux/386,linux/arm/v7,linux/arm/v6"
REPO=${{ matrix.registry.push_link }} VERSION=${{ needs.set-matrix.outputs.git_tag }} docker buildx bake --file docker/docker-bake.hcl --push --set "*.platform=linux/arm64,linux/amd64,linux/s390x,linux/386,linux/arm/v7,linux/arm/v6"
release:
runs-on: ubuntu-latest
Expand All @@ -76,10 +75,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
generate_release_notes: true
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ if (POLICY CMP0054)
endif ()

set(LIB_MAJOR_VERSION "1")
set(LIB_MINOR_VERSION "2")
set(LIB_PATCH_VERSION "2")
set(LIB_MINOR_VERSION "3")
set(LIB_PATCH_VERSION "0")
set(LIB_VERSION_STRING "${LIB_MAJOR_VERSION}.${LIB_MINOR_VERSION}.${LIB_PATCH_VERSION}")

if (CMAKE_VERSION VERSION_LESS 3.0)
Expand Down
6 changes: 3 additions & 3 deletions docker/docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ variable "AUTHOR_EMAIL" {
}

variable "ALPINE_VERSION" {
default = "3.16"
default = "latest"
}

variable "VERSION" {
Expand All @@ -34,8 +34,8 @@ target "neujson-alpine" {
VERSION = "${VERSION}"
}
tags = [
"${REPO}/neujson:alpine-${ALPINE_VERSION}-latest",
notequal("", VERSION) ? "${REPO}/neujson:alpine-${ALPINE_VERSION}-${VERSION}" : "",
"${REPO}/neujson:latest",
notequal("", VERSION) ? "${REPO}/neujson:${VERSION}" : "",
]
platforms = ["linux/amd64"]
}

0 comments on commit 0b72720

Please sign in to comment.