Skip to content

Commit 71c5ecc

Browse files
ferruhcihanAni1357
andauthored
feat: linode dockerhub apl-tty (#1679)
Co-authored-by: Ani Argjiri <[email protected]>
1 parent 5c2b76d commit 71c5ecc

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/cloudtty-build-push.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ on:
66
- 'main'
77

88
env:
9-
NAMESPACE: otomi
10-
REPO: tty
9+
NAMESPACE: linode
10+
REPO: apl-tty
1111

1212
jobs:
1313
build-and-version:
@@ -28,7 +28,7 @@ jobs:
2828
2929
set -e
3030
31-
# # Set the first image version to '0.1.0' if the repo does not exists.
31+
# # Set the first image version to '0.1.0' if the repo does not exists.
3232
# if ! curl -s -L --fail "https://hub.docker.com/v2/repositories/${{ env.NAMESPACE }}/${{ env.REPO }}"; then echo "NEW_VERSION=0.1.0" >> $GITHUB_ENV && exit 0; fi
3333
3434
# Get data for latest 10 versions of the image and filter the ones matching our semver pattern. Set the OLD_VERSION environment variable to the latest version.
@@ -68,14 +68,14 @@ jobs:
6868
if: ${{ env.NEW_VERSION != null }}
6969
run: |
7070
pip3 install docker-squash
71-
docker-squash otomi/tty -t ${{ env.NAMESPACE }}/${{ env.REPO }}:${{ env.NEW_VERSION }}
71+
docker-squash ${{ env.NAMESPACE }}/${{ env.REPO }} -t ${{ env.NAMESPACE }}/${{ env.REPO }}:${{ env.NEW_VERSION }}
7272
7373
- name: Login to GitHub Container Registry
7474
if: ${{ env.NEW_VERSION != null }}
7575
uses: docker/login-action@v3
7676
with:
77-
username: 'otomi'
78-
password: '${{ secrets.DOCKERHUB_OTOMI_TOKEN }}'
77+
username: ${{ vars.DOCKERHUB_LINODEBOT_USERNAME }}
78+
password: ${{ secrets.DOCKERHUB_LINODEBOT_TOKEN }}
7979

8080
- name: Push Docker image
8181
if: ${{ env.NEW_VERSION != null }}

tools/Dockerfile-tty

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# syntax=docker/dockerfile:1.6
22
# The above is needed for the "--checksum" aurgument to work in the ADD instruction
33

4-
# Using ubuntu:latest base image
5-
FROM ubuntu:latest
4+
# Using ubuntu:noble base image
5+
FROM ubuntu:jammy
66

77
# Installing curl, vim, wget, tmux ttyd and bash-completion
88
RUN apt update && apt upgrade -y && apt install -y ttyd jq curl vim wget less tmux bash-completion

0 commit comments

Comments
 (0)