Skip to content

Commit

Permalink
upgrade ssh image to debian 12
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-sinina committed Dec 12, 2024
1 parent 0debd6a commit 165a2d9
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 13 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ jobs:

- name: Build package
run: make package

- name: Save deb package as artifact
uses: actions/upload-artifact@v4
with:
name: deb-package
path: /__w/yeti-cli/*.deb

- name: Setup deb-s3
run: gem install deb-s3
Expand All @@ -40,3 +46,46 @@ jobs:
AWS_ENDPOINT_URL: ${{secrets.DEB_AWS_ENDPOINT}}
run: deb-s3 upload --bucket=${{secrets.DEB_AWS_BUCKET}} --prefix=1.13 --codename=bookworm --component=main --visibility=nil --force-path-style --sign=B104E10C35895CFAC0F91473C8D3BC80B6F22179 --gpg-options "\-\-pinentry-mode=loopback \-\-no-tty \-\-batch \-\-yes \-\-passphrase ${{ secrets.GPG_PASSPHRASE }}" ../*.deb

deb12_container:
name: Debian 12 release container
needs: deb12
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Download a single artifact
uses: actions/download-artifact@v4
with:
name: deb12-package

- name: Display structure of downloaded files
run: ls -la

- name: Display path
run: pwd

- name: Calculate version from ${{github.ref}}
env:
PKG_TAG: ${{github.ref}}
shell: bash
run: echo "##[set-output name=tag;]$(echo ${PKG_TAG#refs/tags/})"
id: extract_tag

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push image
uses: docker/build-push-action@v2
with:
context: .
file: ci/ssh-image-bookworm.Dockerfile
push: true
tags: ghcr.io/yeti-web/yeti-cli/ssh:${{steps.extract_tag.outputs.tag}}


10 changes: 10 additions & 0 deletions ci/ssh-image-bookworm.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM debian:bookworm-slim

ENV DEBIAN_FRONTEND=noninteractive \
LANG=C.UTF-8

RUN apt update && apt -y dist-upgrade && apt install -y ca-certificates openssh-server

COPY *.deb /
RUN dpkg -i /*.deb || apt install -f -y --no-install-recommends && rm /*.deb

13 changes: 0 additions & 13 deletions ci/ssh-image-bullseye.Dockerfile

This file was deleted.

0 comments on commit 165a2d9

Please sign in to comment.