Skip to content

Commit

Permalink
Add workflow to build openssh image
Browse files Browse the repository at this point in the history
  • Loading branch information
sreejithpunnapuzha committed Jan 10, 2025
1 parent 099fd0a commit e8fb691
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/buildimages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,27 @@ jobs:
- name: Completed image build
run: echo "completed image build"
needs: ubuntu_noble_dind

ubuntu_sshd_image:
runs-on: ubuntu-latest
container:
image: quay.io/sreejithp/ubuntu:noble-dind-latest
steps:
- uses: actions/checkout@v2
- name: Build Ubuntu based sshd
run: |
cd openssh/
docker build -f Dockerfile . --network=host \
-t ${{ secrets.REPO }}/${{ secrets.USER }}/sshd:noble-latest \
--build-arg FROM="quay.io/sreejithp/ubuntu:noble" \
--build-arg TIMEZONE=America/Chicago \
--build-arg UTIL_LINUX_VER=$VERSION \
--build-arg UBUNTU_RELEASE=noble
- name: Login to Docker registry
run: docker login ${{ secrets.REPO }} -u ${{ secrets.USER }} -p ${{ secrets.PWD }}
- name: Push image to Docker registry
run: |
docker push ${{ secrets.REPO }}/${{ secrets.USER }}/sshd:noble-latest
- name: Completed image build
run: echo "completed image build"
needs: ubuntu_noble_dind

0 comments on commit e8fb691

Please sign in to comment.