Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Malcolm v24.01.0 #295

Merged
merged 90 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
08283ac
bump development for v24.01.0
mmguero Dec 21, 2023
7bb5c1d
for idaholab/Malcolm#288, file carve download with password-protected…
mmguero Dec 21, 2023
34aeea0
for idaholab/Malcolm#288, file carve download with password-protected…
mmguero Dec 21, 2023
4667291
simplified by removing EXTRACTED_FILE_HTTP_SERVER_ENCRYPT variable, j…
mmguero Dec 21, 2023
575bc38
updated documentation for carved file download (idaholab/Malcolm#288)
mmguero Dec 21, 2023
d045cb2
updated documentation for carved file download (idaholab/Malcolm#288)
mmguero Dec 21, 2023
dfaf9a4
Add Landing Page Information
n8hacks Nov 14, 2023
fde3112
landingpage work in progress (idaholab/Malcolm#252)
mmguero Jan 2, 2024
c149fd6
landingpage work in progress (idaholab/Malcolm#252)
mmguero Jan 2, 2024
31d87a0
landingpage work in progress (idaholab/Malcolm#252)
mmguero Jan 2, 2024
b8bae9a
landingpage work in progress (idaholab/Malcolm#252)
mmguero Jan 2, 2024
01d73c5
landingpage work in progress (idaholab/Malcolm#252)
mmguero Jan 2, 2024
4160edf
landingpage work in progress (idaholab/Malcolm#252)
mmguero Jan 2, 2024
618fc17
landingpage work in progress (idaholab/Malcolm#252)
mmguero Jan 2, 2024
7c7156d
landingpage work in progress (idaholab/Malcolm#252)
mmguero Jan 2, 2024
7af5ee6
landingpage work in progress (idaholab/Malcolm#252)
mmguero Jan 2, 2024
48b5a51
landingpage work in progress (idaholab/Malcolm#252)
mmguero Jan 2, 2024
b673818
bump fluent-bit version
mmguero Jan 3, 2024
355601d
idaholab/Malcolm#321, more consistently differentiate between uploade…
mmguero Jan 3, 2024
673078e
Merge branch 'development' of https://github.com/mmguero-dev/Malcolm …
mmguero Jan 3, 2024
ea28847
Fix idaholab/Malcolm#323, suricata-update was failing because it need…
mmguero Jan 4, 2024
914be26
landingpage rework (idaholab/Malcolm#252)
mmguero Jan 4, 2024
3bd81a6
landingpage work in progress (idaholab/Malcolm#252)
mmguero Jan 4, 2024
86012f0
landingpage work in progress (idaholab/Malcolm#252)
mmguero Jan 4, 2024
cfc29f7
landingpage work in progress (idaholab/Malcolm#252)
mmguero Jan 4, 2024
9a941dc
file carve download stream AES zip (idaholab/Malcolm#288)
mmguero Jan 4, 2024
4ca8d99
landingpage work in progress (idaholab/Malcolm#252)
mmguero Jan 4, 2024
abd514a
work in progress for idaholab/Malcolm#288
mmguero Jan 4, 2024
bc36146
work in progress for idaholab/Malcolm#288
mmguero Jan 4, 2024
9f9775e
work in progress for idaholab/Malcolm#288
mmguero Jan 4, 2024
426dcbf
pin netbox-initializers at v3.6.0 until we update netbox to v3.7.0
mmguero Jan 4, 2024
9486b3a
pin netbox-initializers at v3.6.0 until we update netbox to v3.7.0
mmguero Jan 4, 2024
025b406
directly use the netbox-community/Device-Type-Library-Import script t…
mmguero Jan 4, 2024
81f6150
directly use the netbox-community/Device-Type-Library-Import script t…
mmguero Jan 4, 2024
c6298b5
remove a device type directory that's breaking the database key integ…
mmguero Jan 4, 2024
5d701df
fix link for arkime from dashboards
mmguero Jan 5, 2024
1adea3b
landingpage work in progress (idaholab/Malcolm#252)
mmguero Jan 5, 2024
46e2166
landingpage work in progress (idaholab/Malcolm#252)
mmguero Jan 5, 2024
aa716dd
drop netbox back to v3.6.7 while I work out some things for the upgrade
mmguero Jan 5, 2024
301ff56
more consistently differentiate between uploaded and live-captured t…
mmguero Jan 5, 2024
58c94f3
more consistently differentiate between uploaded and live-captured t…
mmguero Jan 5, 2024
1187798
more consistently differentiate between uploaded and live-captured tr…
mmguero Jan 5, 2024
3846467
more consistently differentiate between uploaded and live-captured tr…
mmguero Jan 5, 2024
e0784e9
Fix idaholab/Malcolm#324 (time sync from hedgehog to Malcolm opensear…
mmguero Jan 5, 2024
3b4baf3
idaholab/Malcolm#324 github workflow update
mmguero Jan 5, 2024
d4c99b0
Fix idaholab/Malcolm#322, update document lookup APIs to search eithe…
mmguero Jan 5, 2024
7b803d4
documentation update
mmguero Jan 5, 2024
5f8726d
make malcolm landing page the default for the firefox launcher on the…
mmguero Jan 5, 2024
8e714bb
idaholab/Malcolm#318, third party logs are not parsed correctly from …
mmguero Jan 8, 2024
41271fe
idaholab/Malcolm#318, third party logs are not parsed correctly from …
mmguero Jan 8, 2024
d48c68f
idaholab/Malcolm#290, add 'all files except common plain text files' …
mmguero Jan 8, 2024
810e938
idaholab/Malcolm#290, add 'all files except common plain text files' …
mmguero Jan 8, 2024
1ca00e0
idaholab/Malcolm#290, add 'all files except common plain text files' …
mmguero Jan 8, 2024
9c9f39c
idaholab/Malcolm#290, add 'all files except common plain text files' …
mmguero Jan 8, 2024
01e2323
fix idaholab/Malcolm#314, Suricata Alerts dashboard 'tags' visualizat…
mmguero Jan 8, 2024
93bf0a4
update prompt to reflect URL is allow for htpdate sync (idaholab/Malc…
mmguero Jan 9, 2024
50cc233
consistenly populate MALCOLM_VERSION, BUILD_DATE, VCS_REVISION in doc…
mmguero Jan 9, 2024
fafa2f1
landingpage work in progress (idaholab/Malcolm#252)
mmguero Jan 9, 2024
ec8882f
extract build version, build timestamp, and VCS revision for all images
mmguero Jan 10, 2024
7757497
only specify --node and/or --host for live capture arkime if those va…
mmguero Jan 10, 2024
3546e67
update version API to include opensearch health under opensearch
mmguero Jan 10, 2024
0228de1
allow blank arkime node host for live capture as it will default to h…
mmguero Jan 10, 2024
45f8e96
allow blank arkime node name for uploaded capture as it will default …
mmguero Jan 10, 2024
47679fc
rename 'capture source' to 'log source' in some dashboards
mmguero Jan 10, 2024
c184812
documentation update
mmguero Jan 10, 2024
4133a74
documentation update
mmguero Jan 10, 2024
b451328
fix to install.py not using the --opensearch command line argument as…
mmguero Jan 10, 2024
92480a3
allow overriding destination index for Zeek and Suricata logs, work i…
mmguero Jan 10, 2024
16e223e
allow overriding destination index for Zeek and Suricata logs, work i…
mmguero Jan 10, 2024
0b535f3
allow overriding destination index for Zeek and Suricata logs, work i…
mmguero Jan 10, 2024
7733c72
don't copy .example env files to every config directory
mmguero Jan 11, 2024
4ae1187
customizing index settings work in progress, idaholab/Malcolm#313 and…
mmguero Jan 11, 2024
d9e00b9
customizing index settings work in progress, idaholab/Malcolm#313 and…
mmguero Jan 11, 2024
86e3598
customizing index settings work in progress, idaholab/Malcolm#313 and…
mmguero Jan 11, 2024
91569c3
customizing index settings work in progress, idaholab/Malcolm#313 and…
mmguero Jan 11, 2024
ea7cc3d
customizing index settings work in progress, idaholab/Malcolm#313 and…
mmguero Jan 11, 2024
c3027ac
remove unused file
mmguero Jan 15, 2024
4aec3a4
customizing index settings work in progress, idaholab/Malcolm#313
mmguero Jan 15, 2024
bc2d490
documentation
mmguero Jan 15, 2024
4e39e89
customizing index settings work in progress, idaholab/Malcolm#313
mmguero Jan 15, 2024
58ba3f2
bump fluent-bit version to v2.2.2
mmguero Jan 15, 2024
564f732
bump beats and logstash to v8.11.4
mmguero Jan 15, 2024
7d87f2a
restore kubernetes image references
mmguero Jan 15, 2024
b002f2f
customizing index settings work in progress, idaholab/Malcolm#313
mmguero Jan 16, 2024
1c0344b
customizing index settings work in progress, idaholab/Malcolm#313
mmguero Jan 16, 2024
ce95e35
Documentation
mmguero Jan 16, 2024
204d5b8
update alpine to v3.19 for docker image bases, also minor documentati…
mmguero Jan 16, 2024
3a471ec
revert NGINX to alpine v3.18 as we were getting lib SSL symbol errors…
mmguero Jan 16, 2024
0e440d8
Merge branch 'development' of https://github.com/mmguero-dev/Malcolm …
mmguero Jan 17, 2024
2a051fa
adjust link for cisagov fork
mmguero Jan 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/api-build-and-push-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,26 @@ jobs:
-
name: Checkout
uses: actions/checkout@v4
-
name: Generate build timestamp
shell: bash
run: echo "btimestamp=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
id: generate_build_timestamp
-
name: Extract branch name
shell: bash
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
id: extract_branch
-
name: Extract commit SHA
shell: bash
run: echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
id: extract_commit_sha
-
name: Extract Malcolm version
shell: bash
run: echo "mversion=$(grep -P "^\s+image:.*/malcolm/" docker-compose.yml | awk '{print $2}' | cut -d':' -f2 | uniq -c | sort -nr | awk '{print $2}' | head -n 1)" >> $GITHUB_OUTPUT
id: extract_malcolm_version
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand All @@ -66,6 +81,10 @@ jobs:
with:
context: .
file: ./Dockerfiles/api.Dockerfile
build-args: |
MALCOLM_VERSION=${{ steps.extract_malcolm_version.outputs.mversion }}
BUILD_DATE=${{ steps.generate_build_timestamp.outputs.btimestamp }}
VCS_REVISION=${{ steps.extract_commit_sha.outputs.sha }}
push: true
tags: ghcr.io/${{ github.repository_owner }}/malcolm/api:${{ steps.extract_branch.outputs.branch }}
-
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/arkime-build-and-push-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,26 @@ jobs:
-
name: Checkout
uses: actions/checkout@v4
-
name: Generate build timestamp
shell: bash
run: echo "btimestamp=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
id: generate_build_timestamp
-
name: Extract branch name
shell: bash
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
id: extract_branch
-
name: Extract commit SHA
shell: bash
run: echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
id: extract_commit_sha
-
name: Extract Malcolm version
shell: bash
run: echo "mversion=$(grep -P "^\s+image:.*/malcolm/" docker-compose.yml | awk '{print $2}' | cut -d':' -f2 | uniq -c | sort -nr | awk '{print $2}' | head -n 1)" >> $GITHUB_OUTPUT
id: extract_malcolm_version
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand All @@ -67,6 +82,9 @@ jobs:
context: .
file: ./Dockerfiles/arkime.Dockerfile
build-args: |
MALCOLM_VERSION=${{ steps.extract_malcolm_version.outputs.mversion }}
BUILD_DATE=${{ steps.generate_build_timestamp.outputs.btimestamp }}
VCS_REVISION=${{ steps.extract_commit_sha.outputs.sha }}
MAXMIND_GEOIP_DB_LICENSE_KEY=${{ secrets.MAXMIND_GEOIP_DB_LICENSE_KEY }}
push: true
tags: ghcr.io/${{ github.repository_owner }}/malcolm/arkime:${{ steps.extract_branch.outputs.branch }}
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/dashboards-build-and-push-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,26 @@ jobs:
-
name: Checkout
uses: actions/checkout@v4
-
name: Generate build timestamp
shell: bash
run: echo "btimestamp=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
id: generate_build_timestamp
-
name: Extract branch name
shell: bash
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
id: extract_branch
-
name: Extract commit SHA
shell: bash
run: echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
id: extract_commit_sha
-
name: Extract Malcolm version
shell: bash
run: echo "mversion=$(grep -P "^\s+image:.*/malcolm/" docker-compose.yml | awk '{print $2}' | cut -d':' -f2 | uniq -c | sort -nr | awk '{print $2}' | head -n 1)" >> $GITHUB_OUTPUT
id: extract_malcolm_version
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand All @@ -66,6 +81,10 @@ jobs:
with:
context: .
file: ./Dockerfiles/dashboards.Dockerfile
build-args: |
MALCOLM_VERSION=${{ steps.extract_malcolm_version.outputs.mversion }}
BUILD_DATE=${{ steps.generate_build_timestamp.outputs.btimestamp }}
VCS_REVISION=${{ steps.extract_commit_sha.outputs.sha }}
push: true
tags: ghcr.io/${{ github.repository_owner }}/malcolm/dashboards:${{ steps.extract_branch.outputs.branch }}
-
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/dashboards-helper-build-and-push-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,26 @@ jobs:
-
name: Checkout
uses: actions/checkout@v4
-
name: Generate build timestamp
shell: bash
run: echo "btimestamp=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
id: generate_build_timestamp
-
name: Extract branch name
shell: bash
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
id: extract_branch
-
name: Extract commit SHA
shell: bash
run: echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
id: extract_commit_sha
-
name: Extract Malcolm version
shell: bash
run: echo "mversion=$(grep -P "^\s+image:.*/malcolm/" docker-compose.yml | awk '{print $2}' | cut -d':' -f2 | uniq -c | sort -nr | awk '{print $2}' | head -n 1)" >> $GITHUB_OUTPUT
id: extract_malcolm_version
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand All @@ -66,6 +81,10 @@ jobs:
with:
context: .
file: ./Dockerfiles/dashboards-helper.Dockerfile
build-args: |
MALCOLM_VERSION=${{ steps.extract_malcolm_version.outputs.mversion }}
BUILD_DATE=${{ steps.generate_build_timestamp.outputs.btimestamp }}
VCS_REVISION=${{ steps.extract_commit_sha.outputs.sha }}
push: true
tags: ghcr.io/${{ github.repository_owner }}/malcolm/dashboards-helper:${{ steps.extract_branch.outputs.branch }}
-
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/dirinit-build-and-push-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,26 @@ jobs:
-
name: Checkout
uses: actions/checkout@v4
-
name: Generate build timestamp
shell: bash
run: echo "btimestamp=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
id: generate_build_timestamp
-
name: Extract branch name
shell: bash
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
id: extract_branch
-
name: Extract commit SHA
shell: bash
run: echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
id: extract_commit_sha
-
name: Extract Malcolm version
shell: bash
run: echo "mversion=$(grep -P "^\s+image:.*/malcolm/" docker-compose.yml | awk '{print $2}' | cut -d':' -f2 | uniq -c | sort -nr | awk '{print $2}' | head -n 1)" >> $GITHUB_OUTPUT
id: extract_malcolm_version
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand All @@ -58,6 +73,10 @@ jobs:
with:
context: .
file: ./Dockerfiles/dirinit.Dockerfile
build-args: |
MALCOLM_VERSION=${{ steps.extract_malcolm_version.outputs.mversion }}
BUILD_DATE=${{ steps.generate_build_timestamp.outputs.btimestamp }}
VCS_REVISION=${{ steps.extract_commit_sha.outputs.sha }}
push: true
tags: ghcr.io/${{ github.repository_owner }}/malcolm/dirinit:${{ steps.extract_branch.outputs.branch }}
-
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/file-monitor-build-and-push-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,26 @@ jobs:
-
name: Checkout
uses: actions/checkout@v4
-
name: Generate build timestamp
shell: bash
run: echo "btimestamp=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
id: generate_build_timestamp
-
name: Extract branch name
shell: bash
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
id: extract_branch
-
name: Extract commit SHA
shell: bash
run: echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
id: extract_commit_sha
-
name: Extract Malcolm version
shell: bash
run: echo "mversion=$(grep -P "^\s+image:.*/malcolm/" docker-compose.yml | awk '{print $2}' | cut -d':' -f2 | uniq -c | sort -nr | awk '{print $2}' | head -n 1)" >> $GITHUB_OUTPUT
id: extract_malcolm_version
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand All @@ -66,6 +81,10 @@ jobs:
with:
context: .
file: ./Dockerfiles/file-monitor.Dockerfile
build-args: |
MALCOLM_VERSION=${{ steps.extract_malcolm_version.outputs.mversion }}
BUILD_DATE=${{ steps.generate_build_timestamp.outputs.btimestamp }}
VCS_REVISION=${{ steps.extract_commit_sha.outputs.sha }}
push: true
tags: ghcr.io/${{ github.repository_owner }}/malcolm/file-monitor:${{ steps.extract_branch.outputs.branch }}
-
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/file-upload-build-and-push-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,26 @@ jobs:
-
name: Checkout
uses: actions/checkout@v4
-
name: Generate build timestamp
shell: bash
run: echo "btimestamp=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
id: generate_build_timestamp
-
name: Extract branch name
shell: bash
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
id: extract_branch
-
name: Extract commit SHA
shell: bash
run: echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
id: extract_commit_sha
-
name: Extract Malcolm version
shell: bash
run: echo "mversion=$(grep -P "^\s+image:.*/malcolm/" docker-compose.yml | awk '{print $2}' | cut -d':' -f2 | uniq -c | sort -nr | awk '{print $2}' | head -n 1)" >> $GITHUB_OUTPUT
id: extract_malcolm_version
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand All @@ -66,6 +81,10 @@ jobs:
with:
context: .
file: ./Dockerfiles/file-upload.Dockerfile
build-args: |
MALCOLM_VERSION=${{ steps.extract_malcolm_version.outputs.mversion }}
BUILD_DATE=${{ steps.generate_build_timestamp.outputs.btimestamp }}
VCS_REVISION=${{ steps.extract_commit_sha.outputs.sha }}
push: true
tags: ghcr.io/${{ github.repository_owner }}/malcolm/file-upload:${{ steps.extract_branch.outputs.branch }}
-
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/filebeat-build-and-push-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,26 @@ jobs:
-
name: Checkout
uses: actions/checkout@v4
-
name: Generate build timestamp
shell: bash
run: echo "btimestamp=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
id: generate_build_timestamp
-
name: Extract branch name
shell: bash
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
id: extract_branch
-
name: Extract commit SHA
shell: bash
run: echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
id: extract_commit_sha
-
name: Extract Malcolm version
shell: bash
run: echo "mversion=$(grep -P "^\s+image:.*/malcolm/" docker-compose.yml | awk '{print $2}' | cut -d':' -f2 | uniq -c | sort -nr | awk '{print $2}' | head -n 1)" >> $GITHUB_OUTPUT
id: extract_malcolm_version
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand All @@ -66,6 +81,10 @@ jobs:
with:
context: .
file: ./Dockerfiles/filebeat.Dockerfile
build-args: |
MALCOLM_VERSION=${{ steps.extract_malcolm_version.outputs.mversion }}
BUILD_DATE=${{ steps.generate_build_timestamp.outputs.btimestamp }}
VCS_REVISION=${{ steps.extract_commit_sha.outputs.sha }}
push: true
tags: ghcr.io/${{ github.repository_owner }}/malcolm/filebeat-oss:${{ steps.extract_branch.outputs.branch }}
-
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/freq-build-and-push-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,26 @@ jobs:
-
name: Checkout
uses: actions/checkout@v4
-
name: Generate build timestamp
shell: bash
run: echo "btimestamp=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
id: generate_build_timestamp
-
name: Extract branch name
shell: bash
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
id: extract_branch
-
name: Extract commit SHA
shell: bash
run: echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
id: extract_commit_sha
-
name: Extract Malcolm version
shell: bash
run: echo "mversion=$(grep -P "^\s+image:.*/malcolm/" docker-compose.yml | awk '{print $2}' | cut -d':' -f2 | uniq -c | sort -nr | awk '{print $2}' | head -n 1)" >> $GITHUB_OUTPUT
id: extract_malcolm_version
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand All @@ -66,6 +81,10 @@ jobs:
with:
context: .
file: ./Dockerfiles/freq.Dockerfile
build-args: |
MALCOLM_VERSION=${{ steps.extract_malcolm_version.outputs.mversion }}
BUILD_DATE=${{ steps.generate_build_timestamp.outputs.btimestamp }}
VCS_REVISION=${{ steps.extract_commit_sha.outputs.sha }}
push: true
tags: ghcr.io/${{ github.repository_owner }}/malcolm/freq:${{ steps.extract_branch.outputs.branch }}
-
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/htadmin-build-and-push-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,26 @@ jobs:
-
name: Checkout
uses: actions/checkout@v4
-
name: Generate build timestamp
shell: bash
run: echo "btimestamp=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
id: generate_build_timestamp
-
name: Extract branch name
shell: bash
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
id: extract_branch
-
name: Extract commit SHA
shell: bash
run: echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
id: extract_commit_sha
-
name: Extract Malcolm version
shell: bash
run: echo "mversion=$(grep -P "^\s+image:.*/malcolm/" docker-compose.yml | awk '{print $2}' | cut -d':' -f2 | uniq -c | sort -nr | awk '{print $2}' | head -n 1)" >> $GITHUB_OUTPUT
id: extract_malcolm_version
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand All @@ -66,6 +81,10 @@ jobs:
with:
context: .
file: ./Dockerfiles/htadmin.Dockerfile
build-args: |
MALCOLM_VERSION=${{ steps.extract_malcolm_version.outputs.mversion }}
BUILD_DATE=${{ steps.generate_build_timestamp.outputs.btimestamp }}
VCS_REVISION=${{ steps.extract_commit_sha.outputs.sha }}
push: true
tags: ghcr.io/${{ github.repository_owner }}/malcolm/htadmin:${{ steps.extract_branch.outputs.branch }}
-
Expand Down
Loading