Skip to content

Commit

Permalink
Renames the Docker images
Browse files Browse the repository at this point in the history
Signed-off-by: iosifache <[email protected]>
  • Loading branch information
iosifache committed Aug 3, 2024
1 parent 175e009 commit 97a38e6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 23 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/ghcr-publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# See also the link below:
# https://docs.github.com/en/actions/publishing-packages/publishing-docker-images

name: Create and publish a Docker images to GHCR
# Relevant docs: https://docs.github.com/en/actions/publishing-packages/publishing-docker-images

name: Create and publish Docker images to GHCR
on:
push:
branches:
Expand All @@ -11,10 +9,8 @@ on:
- sandcastle
- tooling
- .github/workflows/ghcr-publish.yml

env:
REGISTRY: ghcr.io

jobs:
build-and-push-image:
runs-on: ubuntu-latest
Expand All @@ -23,30 +19,30 @@ jobs:
include:
- id: sandcastle
context: sandcastle
- id: coder_sarif
- id: coder
context: tooling/coder
- id: static_analysis
- id: static-analysis
context: tooling/static-analysers
- id: afplusplus
context: tooling/aflplusplus
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
- name: Checkout the repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
- name: Extract the tag and labels for the Docker image
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ env.REGISTRY }}/${{ github.repository }}_${{ matrix.id }}
- name: Build and push Docker image
images: ${{ env.REGISTRY }}/${{ matrix.id }}
- name: Build and push the Docker image
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: ${{ matrix.context }}
Expand Down
14 changes: 7 additions & 7 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
version: "2.4"
services:
sandcastle:
image: ghcr.io/iosifache/oss_fortress_sandcastle:main
image: ghcr.io/iosifache/sandcastle:main
build:
context: sandcastle
network: host
tags:
- "oss_fortress_sandcastle:latest"
- "sandcastle:latest"
container_name: sandcastle
ports:
- "8000:8080"
Expand Down Expand Up @@ -39,11 +39,11 @@ services:
- all

coder:
image: ghcr.io/iosifache/oss_fortress_coder:main
image: ghcr.io/iosifache/coder:main
build:
context: tooling/coder
tags:
- "oss_fortress_coder:latest"
- "coder:latest"
container_name: coder
volumes:
- ".:/home/coder/codebase:ro"
Expand All @@ -58,12 +58,12 @@ services:
- all

static-analysers:
image: ghcr.io/iosifache/oss_fortress_static_analysers:main
image: ghcr.io/iosifache/static-analysers:main
build:
context: tooling/static-analysers
network: host
tags:
- "static_analysers:latest"
- "static-analysers:latest"
container_name: static-analysers
volumes:
- ".:/root/codebase:ro"
Expand All @@ -77,7 +77,7 @@ services:
- all

aflplusplus:
image: ghcr.io/iosifache/oss_fortress_aflplusplus:main
image: ghcr.io/iosifache/aflplusplus:main
build:
context: tooling/aflplusplus
network: host
Expand Down
8 changes: 4 additions & 4 deletions wiki/docs/Analysis environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ For the analysed application and the above tooling, the workshop provides a Dock
- `sandcastle`
- `all`
- **`Dockerfile` in the `oss-fortress` repository**: `sandcastle/Dockerfile`
- **Hosted image**: `iosifache/oss_fortress_sandcastle:main` in GitHub Container Registry
- **Hosted image**: `iosifache/sandcastle:main` in GitHub Container Registry
- **Exposed ports**: `8000` for the web UI
- **User**: `root`
- **Credentials**: N/A
Expand Down Expand Up @@ -55,7 +55,7 @@ For the analysed application and the above tooling, the workshop provides a Dock
- `threat-modelling`
- `all`
- **`Dockerfile` in the `oss-fortress` repository**: `tooling/coder/Dockerfile`
- **Hosted image**: `iosifache/oss_fortress_coder:main` in GitHub Container Registry
- **Hosted image**: `iosifache/coder:main` in GitHub Container Registry
- **Exposed ports**: `8002` for the web UI
- **User**: `coder`
- **Credentials**: `oss-fortress` as the password for authenticating in the user interface
Expand All @@ -71,7 +71,7 @@ For the analysed application and the above tooling, the workshop provides a Dock
- `static-analysis`
- `all`
- **`Dockerfile` in the `oss-fortress` repository**: `tooling/static-analysers/Dockerfile`
- **Hosted image**: `iosifache/oss_fortress_static_analysers:main` in GitHub Container Registry
- **Hosted image**: `iosifache/static-analysers:main` in GitHub Container Registry
- **Exposed ports**: N/A
- **User**: `root`
- **Credentials**: N/A
Expand All @@ -87,7 +87,7 @@ For the analysed application and the above tooling, the workshop provides a Dock
- `dynamic-analysis`
- `all`
- **`Dockerfile` in the `oss-fortress` repository**: `tooling/aflplusplus/Dockerfile`
- **Hosted image**: `iosifache/oss_fortress_aflplusplus:main` in GitHub Container Registry
- **Hosted image**: `iosifache/aflplusplus:main` in GitHub Container Registry
- **Exposed ports**: N/A
- **User**: `root`
- **Credentials**: N/A
Expand Down

0 comments on commit 97a38e6

Please sign in to comment.