Skip to content

Commit

Permalink
build: 4.9.1-0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
WoozyMasta committed Dec 15, 2021
1 parent 79e5bb4 commit ad3b0e3
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 19 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ ARG ARCHI_VERSION=4.9.1
ARG COARCHI_VERSION=0.8.1.202112061132
ARG TZ=UTC

WORKDIR /archi

SHELL ["/bin/bash", "-o", "pipefail", "-x", "-e", "-u", "-c"]

# DL3015 ignored for suppress org.freedesktop.DBus.Error.ServiceUnknown
Expand Down Expand Up @@ -32,14 +34,12 @@ RUN ln -snf "/usr/share/zoneinfo/$TZ" /etc/localtime && \
tar zxf - -C /opt/ && \
chmod +x /opt/Archi/Archi && \
# Install Collaboration plugin \
mkdir -p /archi/.archi4/dropins/ && \
mkdir -p /root/.archi4/dropins /archi/report /archi/project && \
curl "https://www.archimatetool.com/downloads/coarchi1/coArchi_$COARCHI_VERSION.archiplugin" \
--output modelrepository.archiplugin && \
unzip modelrepository.archiplugin -d /archi/.archi4/dropins/ && \
unzip modelrepository.archiplugin -d /root/.archi4/dropins/ && \
rm modelrepository.archiplugin

COPY entrypoint.sh /opt/Archi/

WORKDIR /archi

ENTRYPOINT [ "/opt/Archi/entrypoint.sh" ]
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ You can check the operation of the container using the [example][]

You can pull image from registries:

* `ghcr.io/woozymasta/archimate-ci:4.9.1-0.7`
* `quay.io/woozymasta/archimate-ci:4.9.1-0.7`
* `docker.io/woozymasta/archimate-ci:4.9.1-0.7`
* `ghcr.io/woozymasta/archimate-ci:4.9.1-0.8`
* `quay.io/woozymasta/archimate-ci:4.9.1-0.8`
* `docker.io/woozymasta/archimate-ci:4.9.1-0.8`

## Run Container

Expand All @@ -57,7 +57,7 @@ docker run --rm -ti \
-e ARCHI_JASPER_REPORT_ENABLED=false \
-e ARCHI_CSV_REPORT_ENABLED=true \
-e ARCHI_EXPORT_MODEL_ENABLED=true \
ghcr.io/woozymasta/archimate-ci:4.9.1-0.7
ghcr.io/woozymasta/archimate-ci:4.9.1-0.8
```

An example with handling a local repository:
Expand All @@ -70,13 +70,13 @@ chmod o+rw ./report
docker run --rm -ti \
-v $(pwd):/archi/project \
-v $(pwd)/report:/archi/report \
ghcr.io/woozymasta/archimate-ci:4.9.1-0.7
ghcr.io/woozymasta/archimate-ci:4.9.1-0.8
```

Working with the CLI directly:

```bash
docker run --rm -ti ghcr.io/woozymasta/archimate-ci:4.9.1-0.7 --help
docker run --rm -ti ghcr.io/woozymasta/archimate-ci:4.9.1-0.8 --help
```

## Configuration
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:

- name: Deploy Archi report
id: archi
uses: WoozyMasta/[email protected].7
uses: WoozyMasta/[email protected].8
with:
archiHtmlReportEnabled: true
archiJasperReportEnabled: true
Expand All @@ -172,7 +172,7 @@ jobs:
pages:
stage: build
image:
name: woozymasta/archimate-ci-image:4.9.1-0.7
name: woozymasta/archimate-ci-image:4.9.1-0.8

script:
- /opt/Archi/docker-entrypoint.sh
Expand Down Expand Up @@ -203,8 +203,8 @@ pages:
```bash
docker build \
--tag archimate-ci:4.9.1-0.7 \
--build-arg="ARCHI_VERSION=4.9.1-0.7" \
--tag archimate-ci:4.9.1-0.8 \
--build-arg="ARCHI_VERSION=4.9.1-0.8" \
--build-arg="COARCHI_VERSION=0.8.1.202112061132" \
./
```
Expand All @@ -227,7 +227,7 @@ podman run --rm -ti \
-v $(pwd)/report:/archi/report \
-e GIT_REPOSITORY=https://github.com/WoozyMasta/archimate-ci-image-example.git \
-e ARCHI_JASPER_REPORT_ENABLED=false \
ghcr.io/woozymasta/archimate-ci:4.9.1-0.7
ghcr.io/woozymasta/archimate-ci:4.9.1-0.8
```

---
Expand All @@ -242,7 +242,7 @@ docker run --rm -ti \
-e GIT_REPOSITORY=https://github.com/WoozyMasta/archimate-ci-image-example.git
--network=host
--add-host="$(getent hosts gitlab.internal.tld | awk '{print $2 ":" $1}')"
ghcr.io/woozymasta/archimate-ci:4.9.1-0.7
ghcr.io/woozymasta/archimate-ci:4.9.1-0.8
```

<!-- links -->
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ branding:
color: blue
runs:
using: docker
image: docker://ghcr.io/woozymasta/archimate-ci-image:4.9.1-0.7
image: docker://ghcr.io/woozymasta/archimate-ci-image:4.9.1-0.8
env:
GITHUB_TOKEN: ${{ inputs.githubToken }}
ARCHI_HTML_REPORT_ENABLED: ${{ inputs.archiHtmlReportEnabled }}
Expand Down
3 changes: 1 addition & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -exuo pipefail
# ----

# Script environments
: "${ARCHI_PROJECT_PATH:=/archi/project}"
: "${ARCHI_PROJECT_PATH:=${GITHUB_WORKSPACE:-/archi/project}}"
: "${ARCHI_REPORT_PATH:=/archi/report}"
: "${ARCHI_HTML_REPORT_ENABLED:=true}"
: "${ARCHI_JASPER_REPORT_ENABLED:=false}"
Expand Down Expand Up @@ -167,7 +167,6 @@ if [ "${GITHUB_ACTIONS:-}" == true ]; then
_gh_repo+="${GITHUB_SERVER_URL//*\/\/}/$GITHUB_REPOSITORY.git" # URL

# Set actions specified paths
ARCHI_PROJECT_PATH="${GITHUB_WORKSPACE:-$ARCHI_PROJECT_PATH}"
ARCHI_REPORT_PATH="$ARCHI_PROJECT_PATH/$GIT_SUBTREE_PREFIX"
ARCHI_HTML_REPORT_PATH="$ARCHI_REPORT_PATH"
ARCHI_CSV_REPORT_PATH="$ARCHI_REPORT_PATH"
Expand Down

0 comments on commit ad3b0e3

Please sign in to comment.