Skip to content

Commit

Permalink
feat: v1.1.0 released
Browse files Browse the repository at this point in the history
Signed-off-by: Homing So <[email protected]>
  • Loading branch information
hominsu committed May 23, 2024
1 parent 89f1b4f commit 4bf64c7
Show file tree
Hide file tree
Showing 3 changed files with 11 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,7 +8,7 @@ if (POLICY CMP0054)
endif ()

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

Expand Down Expand Up @@ -163,7 +163,7 @@ if (BENCODE_BUILD_TESTS)
endif ()

# header
install(DIRECTORY include/bencode
install(DIRECTORY include/${PROJECT_NAME}
DESTINATION "${INCLUDE_INSTALL_DIR}"
COMPONENT dev)

Expand Down
5 changes: 2 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.19"
default = "latest"
}

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

0 comments on commit 4bf64c7

Please sign in to comment.