Skip to content

Commit

Permalink
fix(server): remove docker image completely
Browse files Browse the repository at this point in the history
Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
  • Loading branch information
glimchb committed Jun 12, 2024
1 parent 159d11c commit 07b2ab5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 47 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/sztp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,39 +11,6 @@ on:

jobs:

sztp-server-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3.0.0

- name: Log in to the GH Container registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v3.0.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5.0.0
with:
images: ghcr.io/${{ github.repository_owner }}/opi-sztp-server

- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@v5.0.0
with:
context: sztp-server
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

sztp-client-push:
runs-on: ubuntu-latest
steps:
Expand Down
12 changes: 6 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ version: '3.7'
services:

bootstrap:
image: ghcr.io/opiproject/opi-sztp-server:main
build:
context: sztp-server
image: docker.io/opiproject/sztpd:0.0.15
depends_on:
setup-cert:
condition: service_completed_successfully
volumes:
- server-certs:/certs
- ./sztp-server/images:/media
- ./sztp-server/config:/mnt
- ./sztp-server/docker-entrypoint.sh:/usr/local/bin/docker-entrypoint.sh
entrypoint: /usr/local/bin/docker-entrypoint.sh
environment:
SZTPD_INIT_PORT: 6080
SZTPD_NBI_PORT: 7080
Expand All @@ -34,15 +34,15 @@ services:
test: ["CMD-SHELL", "curl --fail -H Accept:application/yang-data+json http://127.0.0.1:$$SZTPD_NBI_PORT/.well-known/host-meta || exit 1"]

redirecter:
image: ghcr.io/opiproject/opi-sztp-server:main
build:
context: sztp-server
image: docker.io/opiproject/sztpd:0.0.15
depends_on:
setup-cert:
condition: service_completed_successfully
volumes:
- server-certs:/certs
- ./sztp-server/config/sztpd.redirect.json.template:/mnt/sztpd.redirect.json.template
- ./sztp-server/docker-entrypoint.sh:/usr/local/bin/docker-entrypoint.sh
entrypoint: /usr/local/bin/docker-entrypoint.sh
environment:
SZTPD_INIT_PORT: 6080
SZTPD_NBI_PORT: 7070
Expand Down
8 changes: 0 additions & 8 deletions sztp-server/Dockerfile

This file was deleted.

0 comments on commit 07b2ab5

Please sign in to comment.