Skip to content

Commit a4dd8e7

Browse files
authored
Merge pull request #34 from telnetdoogie/develop
feat: added armv7 with automated dev build, plus :develop release.
2 parents 83074d8 + f228b29 commit a4dd8e7

File tree

4 files changed

+39
-30
lines changed

4 files changed

+39
-30
lines changed

.github/workflows/auto_release.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches:
66
- main
7-
- develop
7+
88
jobs:
99
new-release:
1010
runs-on: ubuntu-latest
@@ -29,13 +29,6 @@ jobs:
2929
echo "Clean Changelog: ${{ steps.changelog.outputs.clean_changelog }}"
3030
echo "Outputs Skipped: ${{ steps.changelog.outputs.skipped }}"
3131
32-
- name: Create Development Tag (if on develop)
33-
if: github.ref == 'refs/heads/develop' && steps.changelog.outputs.skipped == 'false'
34-
run: |
35-
DEV_TAG="dev-${{ steps.changelog.outputs.tag }}"
36-
git tag $DEV_TAG
37-
git push origin $DEV_TAG
38-
3932
- name: Create Production Release # This action will create the actual production release
4033
uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e # v1
4134
if: github.ref == 'refs/heads/main' && steps.changelog.outputs.skipped == 'false'

.github/workflows/docker-publish.yml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,29 @@ jobs:
2424
outputs:
2525
is_dev: ${{ steps.check_version.outputs.is_dev }}
2626
steps:
27-
- name: Check if this is a dev release
27+
- name: Extract branch or tag name and determine if it's a dev release
2828
id: check_version
2929
run: |
30-
if [[ "${{ github.ref_name }}" == dev-* ]]; then
30+
# Extract branch or tag name
31+
if [[ "$GITHUB_REF" == refs/heads/* ]]; then
32+
TAG_NAME="${GITHUB_REF#refs/heads/}" # Extract branch name
33+
elif [[ "$GITHUB_REF" == refs/tags/* ]]; then
34+
TAG_NAME="${GITHUB_REF#refs/tags/}" # Extract tag name
35+
else
36+
TAG_NAME="$GITHUB_REF" # Fallback (shouldn't happen)
37+
fi
38+
echo "Extracted TAG_NAME: $TAG_NAME"
39+
# Check if TAG_NAME starts with "dev"
40+
if [[ "$TAG_NAME" == dev* ]]; then
3141
echo "is_dev=true" >> $GITHUB_ENV
32-
echo "This is a development release"
42+
echo "is_dev=true" >> $GITHUB_OUTPUT
43+
echo "Detected a development release: $TAG_NAME"
3344
else
3445
echo "is_dev=false" >> $GITHUB_ENV
35-
echo "This is a production release"
46+
echo "is_dev=false" >> $GITHUB_OUTPUT
47+
echo "Detected a production release: $TAG_NAME"
3648
fi
49+
shell: bash
3750

3851
build-prod:
3952
needs: setup
@@ -117,7 +130,7 @@ jobs:
117130
with:
118131
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
119132
tags: |
120-
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:dev-${{ github.ref_name }}
133+
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name == 'develop' && 'develop' || format('dev-{0}', github.ref_name) }}
121134
122135
- name: Build and push Docker image (Production Release)
123136
id: build-and-push
@@ -128,8 +141,8 @@ jobs:
128141
provenance: true
129142
push: true
130143
tags: |
131-
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:dev-${{ github.ref_name }}
144+
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name == 'develop' && 'develop' || format('dev-{0}', github.ref_name) }}
132145
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:dev-latest
133146
labels: ${{ steps.meta.outputs.labels }}
134147
cache-from: type=gha
135-
cache-to: type=gha,mode=max
148+
cache-to: type=gha,mode=max

CHANGELOG.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,46 @@
1-
# [1.4.0](https://github.com/telnetdoogie/callattendant-docker/compare/v1.3.0...v1.4.0) (2025-02-14)
1+
## [1.5.3](https://github.com/telnetdoogie/callattendant-docker/compare/v1.5.2...v1.5.3) (2025-02-14)
22

33

4-
### Features
4+
### Bug Fixes
55

6-
* Modify Dockerfile for armv7 version ([68e8449](https://github.com/telnetdoogie/callattendant-docker/commit/68e84495584deeb8dfb1499a571a135c60cce7c3))
6+
* **ci:** remove build isolation so no lxml build ([c602c67](https://github.com/telnetdoogie/callattendant-docker/commit/c602c67d29167599cb76ccf04f2fc684fbb64de6))
77

88

99

10-
# [1.3.0](https://github.com/telnetdoogie/callattendant-docker/compare/v1.2.0...v1.3.0) (2025-02-14)
10+
## [1.5.2](https://github.com/telnetdoogie/callattendant-docker/compare/v1.5.1...v1.5.2) (2025-02-14)
1111

1212

13-
### Features
13+
### Bug Fixes
1414

15-
* Add armv7 version ([17b3f0d](https://github.com/telnetdoogie/callattendant-docker/commit/17b3f0d1efafa30b0a79a62eb7ac0d286f1b52eb))
15+
* **ci:** modify check for develop branch ([64989a3](https://github.com/telnetdoogie/callattendant-docker/commit/64989a34d7679863aae78f0df3c86702229cea25))
1616

1717

1818

19-
# [1.2.0](https://github.com/telnetdoogie/callattendant-docker/compare/v1.1.0...v1.2.0) (2025-01-10)
19+
## [1.5.1](https://github.com/telnetdoogie/callattendant-docker/compare/v1.4.2...v1.5.1) (2025-02-14)
2020

2121

22-
### Features
22+
### Bug Fixes
2323

24-
* Update dependency thess/callattendant to v2.1.0 ([a10371d](https://github.com/telnetdoogie/callattendant-docker/commit/a10371d4d6dbe6052daa7bd4cfcbaf13db54017c))
24+
* **ci:** bump for new dev tag ([0cf16b3](https://github.com/telnetdoogie/callattendant-docker/commit/0cf16b37444267d7c6142372c8b11f4fb4794890))
25+
* **ci:** bump for new dev tag ([f472d39](https://github.com/telnetdoogie/callattendant-docker/commit/f472d3916d34d54a6934b74112ad9cc9da03ca12))
2526

2627

2728

28-
# [1.1.0](https://github.com/telnetdoogie/callattendant-docker/compare/v1.0.1...v1.1.0) (2024-12-31)
29+
## [1.4.2](https://github.com/telnetdoogie/callattendant-docker/compare/v1.4.1...v1.4.2) (2025-02-14)
2930

3031

31-
### Features
32+
### Bug Fixes
3233

33-
* renovate - stay up to date with thess version ([a77426c](https://github.com/telnetdoogie/callattendant-docker/commit/a77426c68c4b2b953d09b3d1a1ef8f382b1bede0))
34+
* **ci:** resolve release version detection in publish action ([10ba475](https://github.com/telnetdoogie/callattendant-docker/commit/10ba475226018e33931c091e9993cef9eb199ba1))
3435

3536

3637

37-
## [1.0.1](https://github.com/telnetdoogie/callattendant-docker/compare/v0.1.0...v1.0.1) (2024-12-31)
38+
## [1.4.1](https://github.com/telnetdoogie/callattendant-docker/compare/v1.4.0...v1.4.1) (2025-02-14)
3839

3940

4041
### Bug Fixes
4142

42-
* removed armv7 docker build ([e772efc](https://github.com/telnetdoogie/callattendant-docker/commit/e772efc28a80df1e138b091b6a64013ce785774b))
43+
* Remove the need to compile lxml for armv7 ([a2fdbfe](https://github.com/telnetdoogie/callattendant-docker/commit/a2fdbfe425f8f691614fbab5e4a3ed235db1feb6))
4344

4445

4546

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.13.2-alpine3.21 as builder
1+
FROM python:3.13.2-alpine3.21 AS builder
22

33
WORKDIR /app
44

@@ -8,8 +8,10 @@ RUN apk add --no-cache \
88
musl-dev \
99
libxml2-dev \
1010
libxslt-dev \
11+
py3-lxml \
1112
python3-dev
1213

14+
1315
RUN pip install --no-cache-dir --prefix=/install callattendant@git+https://github.com/thess/callattendant@v2.1.0
1416

1517
FROM python:3.13.2-alpine3.21

0 commit comments

Comments
 (0)