Skip to content

Commit d219562

Browse files
authored
Merge pull request #115 from dokku/master
Release 0.17.0
2 parents e206572 + 549ae19 commit d219562

7 files changed

Lines changed: 30 additions & 52 deletions

File tree

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,12 @@ updates:
55
directory: "/"
66
schedule:
77
interval: "weekly"
8+
labels:
9+
- "type: dependencies"
10+
- package-ecosystem: github-actions
11+
directory: "/"
12+
schedule:
13+
interval: daily
14+
open-pull-requests-limit: 10
15+
labels:
16+
- "type: dependencies"

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ jobs:
1919
fail-fast: true
2020

2121
steps:
22-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v3
2323

2424
- name: extract branch name
2525
shell: bash
2626
run: |
2727
if [[ "$GITHUB_REF" == *"/pull/"* ]]; then
28-
echo "##[set-output name=branch;]${GITHUB_HEAD_REF#refs/heads/}"
28+
echo "branch=${GITHUB_HEAD_REF#refs/heads/}" >> $GITHUB_OUTPUT
2929
else
30-
echo "##[set-output name=branch;]${GITHUB_REF#refs/heads/}"
30+
echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
3131
fi
3232
id: extract_branch
3333

@@ -55,7 +55,7 @@ jobs:
5555
CI_BRANCH: ${{ steps.extract_branch.outputs.branch }}
5656

5757
- name: upload packages
58-
uses: actions/upload-artifact@v2
58+
uses: actions/upload-artifact@v3
5959
with:
6060
name: build
6161
path: build

.github/workflows/lint.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ jobs:
1616
runs-on: ubuntu-20.04
1717
steps:
1818
- name: Clone
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@v3
2020
- name: Run hadolint
21-
uses: hadolint/hadolint-action@d7b38582334d9ac11c12021c16f21d63015fa250
21+
uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf
2222
# v1.6.0 => d7b38582334d9ac11c12021c16f21d63015fa250
2323

2424
markdown-lint:
2525
name: markdown-lint
2626
runs-on: ubuntu-20.04
2727
steps:
2828
- name: Clone
29-
uses: actions/checkout@v2
29+
uses: actions/checkout@v3
3030
- name: Run markdown-lint
3131
uses: avto-dev/markdown-lint@04d43ee9191307b50935a753da3b775ab695eceb
3232
# v1.5.0 => 04d43ee9191307b50935a753da3b775ab695eceb
@@ -39,9 +39,9 @@ jobs:
3939
runs-on: ubuntu-20.04
4040
steps:
4141
- name: Clone
42-
uses: actions/checkout@v2
42+
uses: actions/checkout@v3
4343
- name: Run shellcheck
44-
uses: ludeeus/action-shellcheck@94e0aab03ca135d11a35e5bfc14e6746dc56e7e9
44+
uses: ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38
4545
# 1.1.0 => 94e0aab03ca135d11a35e5bfc14e6746dc56e7e9
4646
env:
4747
SHELLCHECK_OPTS: -e SC2034
@@ -51,9 +51,9 @@ jobs:
5151
runs-on: ubuntu-20.04
5252
steps:
5353
- name: Clone
54-
uses: actions/checkout@v2
54+
uses: actions/checkout@v3
5555
- name: Run shfmt
56-
uses: luizm/action-sh-checker@7f44869033b40ee4ffe7dc76c87a1bc66e3d025a
56+
uses: luizm/action-sh-checker@76ab0b22e1f194e4a582edc7969df6485c4e9246
5757
# v0.3.0 => 7f44869033b40ee4ffe7dc76c87a1bc66e3d025a
5858
env:
5959
SHFMT_OPTS: -l -bn -ci -i 2 -d
@@ -65,9 +65,9 @@ jobs:
6565
runs-on: ubuntu-20.04
6666
steps:
6767
- name: Clone
68-
uses: actions/checkout@v2
68+
uses: actions/checkout@v3
6969
- name: Run yamllint
70-
uses: ibiqlik/action-yamllint@ed2b6e911569708ed121c14b87d513860a7e36a7
70+
uses: ibiqlik/action-yamllint@2576378a8e339169678f9939646ee3ee325e845c
7171
# v3.0.4 => ed2b6e911569708ed121c14b87d513860a7e36a7
7272
with:
7373
config_file: '.github/linters/.yamllint.yml'

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM golang:1.18.1-buster
1+
FROM golang:1.20.5-buster
22

33
# hadolint ignore=DL3027
44
RUN apt-get update \
5-
&& apt install apt-transport-https build-essential curl gnupg2 jq lintian rpm rsync rubygems-integration ruby-dev ruby software-properties-common sudo -qy \
5+
&& apt install apt-transport-https build-essential curl gnupg2 jq lintian rsync rubygems-integration ruby-dev ruby software-properties-common sudo -qy \
66
&& apt-get clean \
77
&& rm -rf /var/lib/apt/lists/*
88

Makefile

Lines changed: 3 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ MAINTAINER_NAME = Jose Diaz-Gonzalez
66
REPOSITORY = sshcommand
77
HARDWARE = $(shell uname -m)
88
SYSTEM_NAME = $(shell uname -s | tr '[:upper:]' '[:lower:]')
9-
BASE_VERSION ?= 0.16.0
9+
BASE_VERSION ?= 0.17.0
1010
IMAGE_NAME ?= $(MAINTAINER)/$(REPOSITORY)
1111
PACKAGECLOUD_REPOSITORY ?= dokku/dokku-betafish
1212

@@ -50,7 +50,6 @@ build: pre-build
5050
@$(MAKE) build/darwin/$(NAME)
5151
@$(MAKE) build/linux/$(NAME)
5252
@$(MAKE) build/deb/$(NAME)_$(VERSION)_all.deb
53-
@$(MAKE) build/rpm/$(NAME)-$(VERSION)-1.x86_64.rpm
5453

5554
build-docker-image:
5655
docker build --rm -q -t $(IMAGE_NAME):build .
@@ -96,28 +95,6 @@ build/deb/$(NAME)_$(VERSION)_all.deb: build/linux/$(NAME)
9695
build/linux/$(NAME)=/usr/bin/$(NAME) \
9796
LICENSE=/usr/share/doc/$(NAME)/copyright
9897

99-
build/rpm/$(NAME)-$(VERSION)-1.x86_64.rpm: build/linux/$(NAME)
100-
chmod 644 LICENSE
101-
export SOURCE_DATE_EPOCH=$(shell git log -1 --format=%ct) \
102-
&& mkdir -p build/rpm \
103-
&& fpm \
104-
--architecture x86_64 \
105-
--category admin \
106-
--description "$$PACKAGE_DESCRIPTION" \
107-
--input-type dir \
108-
--license 'MIT License' \
109-
--maintainer "$(MAINTAINER_NAME) <$(EMAIL)>" \
110-
--name $(NAME) \
111-
--output-type rpm \
112-
--package build/rpm/$(NAME)-$(VERSION)-1.x86_64.rpm \
113-
--rpm-os linux \
114-
--url "https://github.com/$(MAINTAINER)/$(REPOSITORY)" \
115-
--vendor "" \
116-
--version $(VERSION) \
117-
--verbose \
118-
build/linux/$(NAME)=/usr/bin/$(NAME) \
119-
LICENSE=/usr/share/doc/$(NAME)/copyright
120-
12198
clean:
12299
rm -rf build release validation
123100

@@ -141,37 +118,29 @@ release: bin/gh-release bin/gh-release-body
141118
tar -zcf release/$(NAME)_$(VERSION)_linux_$(HARDWARE).tgz -C build/linux $(NAME)
142119
tar -zcf release/$(NAME)_$(VERSION)_darwin_$(HARDWARE).tgz -C build/darwin $(NAME)
143120
cp build/deb/$(NAME)_$(VERSION)_all.deb release/$(NAME)_$(VERSION)_all.deb
144-
cp build/rpm/$(NAME)-$(VERSION)-1.x86_64.rpm release/$(NAME)-$(VERSION)-1.x86_64.rpm
145121
bin/gh-release create $(MAINTAINER)/$(REPOSITORY) $(VERSION) $(shell git rev-parse --abbrev-ref HEAD)
146122
bin/gh-release-body $(MAINTAINER)/$(REPOSITORY) v$(VERSION)
147123

148124
release-packagecloud:
149125
@$(MAKE) release-packagecloud-deb
150-
@$(MAKE) release-packagecloud-rpm
151126

152127
release-packagecloud-deb: build/deb/$(NAME)_$(VERSION)_all.deb
153-
package_cloud push $(PACKAGECLOUD_REPOSITORY)/ubuntu/bionic build/deb/$(NAME)_$(VERSION)_all.deb
154128
package_cloud push $(PACKAGECLOUD_REPOSITORY)/ubuntu/focal build/deb/$(NAME)_$(VERSION)_all.deb
155129
package_cloud push $(PACKAGECLOUD_REPOSITORY)/ubuntu/jammy build/deb/$(NAME)_$(VERSION)_all.deb
156-
package_cloud push $(PACKAGECLOUD_REPOSITORY)/debian/stretch build/deb/$(NAME)_$(VERSION)_all.deb
157130
package_cloud push $(PACKAGECLOUD_REPOSITORY)/debian/buster build/deb/$(NAME)_$(VERSION)_all.deb
158131
package_cloud push $(PACKAGECLOUD_REPOSITORY)/debian/bullseye build/deb/$(NAME)_$(VERSION)_all.deb
132+
package_cloud push $(PACKAGECLOUD_REPOSITORY)/debian/bookworm build/deb/$(NAME)_$(VERSION)_all.deb
159133
package_cloud push $(PACKAGECLOUD_REPOSITORY)/raspbian/buster build/deb/$(NAME)_$(VERSION)_all.deb
160134
package_cloud push $(PACKAGECLOUD_REPOSITORY)/raspbian/bullseye build/deb/$(NAME)_$(VERSION)_all.deb
161135

162-
release-packagecloud-rpm: build/rpm/$(NAME)-$(VERSION)-1.x86_64.rpm
163-
package_cloud push $(PACKAGECLOUD_REPOSITORY)/el/7 build/rpm/$(NAME)-$(VERSION)-1.x86_64.rpm
164-
165136
validate: test
166137
mkdir -p validation
167138
lintian build/deb/$(NAME)_$(VERSION)_all.deb || true
168139
dpkg-deb --info build/deb/$(NAME)_$(VERSION)_all.deb
169140
dpkg -c build/deb/$(NAME)_$(VERSION)_all.deb
170141
cd validation && ar -x ../build/deb/$(NAME)_$(VERSION)_all.deb
171-
cd validation && rpm2cpio ../build/rpm/$(NAME)-$(VERSION)-1.x86_64.rpm > $(NAME)-$(VERSION)-1.x86_64.cpio
172-
ls -lah build/deb build/rpm validation
142+
ls -lah build/deb validation
173143
sha1sum build/deb/$(NAME)_$(VERSION)_all.deb
174-
sha1sum build/rpm/$(NAME)-$(VERSION)-1.x86_64.rpm
175144

176145
test: lint unit-tests
177146

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sshcommand",
3-
"version": "0.16.0",
3+
"version": "0.17.0",
44
"description": "Turn SSH into a thin client specifically for your app",
55
"global": "true",
66
"install": "cp sshcommand /usr/local/bin && chmod +x /usr/local/bin/sshcommand",

tests/unit/core.bats

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ check_custom_allowed_keys() {
173173
echo "status: $status"
174174
assert_success
175175

176-
run bash -c "grep -F \"$(< "${TEST_KEY_DIR}/${TEST_KEY_NAME}.pub")\" ~${TEST_USER}/.ssh/authorized_keys | grep user1"
176+
run bash -c "grep -F \"$(<"${TEST_KEY_DIR}/${TEST_KEY_NAME}.pub")\" ~${TEST_USER}/.ssh/authorized_keys | grep user1"
177177
echo "output: $output"
178178
echo "status: $status"
179179
assert_success
@@ -183,7 +183,7 @@ check_custom_allowed_keys() {
183183
echo "status: $status"
184184
assert_success
185185

186-
run bash -c "grep -F \"$(< "${TEST_KEY_DIR}/${TEST_KEY_NAME}.pub")\" ~${TEST_USER}/.ssh/authorized_keys | grep user1"
186+
run bash -c "grep -F \"$(<"${TEST_KEY_DIR}/${TEST_KEY_NAME}.pub")\" ~${TEST_USER}/.ssh/authorized_keys | grep user1"
187187
echo "output: $output"
188188
echo "status: $status"
189189
assert_failure

0 commit comments

Comments
 (0)