Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.5.0 #110

Merged
merged 116 commits into from
Aug 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
1b38a23
chore(deps): bump golang from 1.19.0-buster to 1.19.4-buster
dependabot[bot] Dec 7, 2022
b810613
chore(deps): bump certifi from 2021.10.8 to 2022.12.7 in /tests/poetry
dependabot[bot] Dec 8, 2022
95b8154
chore(deps): bump certifi from 2021.10.8 to 2022.12.7 in /tests/pipenv
dependabot[bot] Dec 8, 2022
44790a3
chore(deps): bump github.com/mattn/go-isatty from 0.0.14 to 0.0.17
dependabot[bot] Dec 29, 2022
45e2309
Merge pull request #58 from dokku/dependabot/go_modules/github.com/ma…
josegonzalez Jan 2, 2023
6b75d3d
Merge pull request #57 from dokku/dependabot/pip/tests/pipenv/certifi…
josegonzalez Jan 2, 2023
431c687
Merge pull request #56 from dokku/dependabot/pip/tests/poetry/certifi…
josegonzalez Jan 2, 2023
9ce1f6e
Merge pull request #55 from dokku/dependabot/docker/golang-1.19.4-buster
josegonzalez Jan 2, 2023
95f4799
fix: correct issue where mounted volume has bad permissions for git r…
josegonzalez Jan 2, 2023
e2f1806
feat: add github-actions to dependabot config
josegonzalez Jan 2, 2023
57553ec
Merge pull request #59 from dokku/josegonzalez-patch-1
josegonzalez Jan 2, 2023
5ff1f72
Merge pull request #61 from dokku/josegonzalez-patch-3
josegonzalez Jan 2, 2023
d938830
chore(deps): bump actions/upload-artifact from 2 to 3
dependabot[bot] Jan 2, 2023
a651db6
chore(deps): bump luizm/action-sh-checker from 0.3.0 to 0.5.0
dependabot[bot] Jan 2, 2023
c5ba183
chore(deps): bump actions/checkout from 2 to 3
dependabot[bot] Jan 2, 2023
9817c20
chore(deps): bump hadolint/hadolint-action from 1.5.0 to 3.0.0
dependabot[bot] Jan 2, 2023
084d25f
chore(deps): bump ibiqlik/action-yamllint from 3.0.2 to 3.1.1
dependabot[bot] Jan 2, 2023
213a7c5
chore(deps): bump github.com/aws/aws-lambda-go from 1.34.1 to 1.36.1
dependabot[bot] Jan 2, 2023
f811236
chore(deps): bump github.com/mitchellh/cli from 1.1.4 to 1.1.5
dependabot[bot] Jan 2, 2023
ac3de1b
Merge pull request #62 from dokku/dependabot/github_actions/actions/u…
josegonzalez Jan 2, 2023
21a9f09
Merge pull request #63 from dokku/dependabot/github_actions/luizm/act…
josegonzalez Jan 2, 2023
cafd399
Merge pull request #65 from dokku/dependabot/github_actions/hadolint/…
josegonzalez Jan 2, 2023
7f416bb
Merge pull request #64 from dokku/dependabot/github_actions/actions/c…
josegonzalez Jan 2, 2023
40f6dbb
Merge pull request #66 from dokku/dependabot/github_actions/ibiqlik/a…
josegonzalez Jan 2, 2023
ca43d24
Merge pull request #67 from dokku/dependabot/go_modules/github.com/aw…
josegonzalez Jan 2, 2023
1b58cdd
chore(deps): bump github.com/BurntSushi/toml from 1.2.0 to 1.2.1
dependabot[bot] Jan 2, 2023
807cd30
Merge pull request #54 from dokku/dependabot/go_modules/github.com/mi…
josegonzalez Jan 2, 2023
5271ad3
chore(deps): bump github.com/rs/zerolog from 1.27.0 to 1.28.0
dependabot[bot] Jan 2, 2023
a83d9a0
chore: update ci.yml
josegonzalez Jan 2, 2023
fcd51c8
Merge pull request #60 from dokku/josegonzalez-patch-2
josegonzalez Jan 2, 2023
acaf7b4
Merge pull request #48 from dokku/dependabot/go_modules/github.com/rs…
josegonzalez Jan 2, 2023
8035eb5
Merge pull request #52 from dokku/dependabot/go_modules/github.com/Bu…
josegonzalez Jan 2, 2023
f5ff02f
chore(deps): bump github.com/josegonzalez/cli-skeleton
dependabot[bot] Jan 2, 2023
7c9a726
Merge pull request #51 from dokku/dependabot/go_modules/github.com/jo…
josegonzalez Jan 2, 2023
9b41a81
chore(deps): bump golang from 1.19.4-buster to 1.19.5-buster
dependabot[bot] Jan 11, 2023
2f34a7c
chore(deps): bump github.com/aws/aws-lambda-go from 1.36.1 to 1.37.0
dependabot[bot] Jan 11, 2023
b897f6a
Merge pull request #70 from dokku/dependabot/go_modules/github.com/aw…
josegonzalez Jan 11, 2023
e439377
Merge pull request #69 from dokku/dependabot/docker/golang-1.19.5-buster
josegonzalez Jan 11, 2023
c562c9c
chore(deps): bump github.com/codeclysm/extract/v3 from 3.0.2 to 3.1.0
dependabot[bot] Jan 11, 2023
3186cdc
Merge pull request #68 from dokku/dependabot/go_modules/github.com/co…
josegonzalez Jan 11, 2023
c53ea5d
chore: drop rpm support
Jan 16, 2023
8dec87b
Merge pull request #71 from dokku/drop-rpm-support
josegonzalez Jan 16, 2023
ca9f725
chore(deps): bump hadolint/hadolint-action from 3.0.0 to 3.1.0
dependabot[bot] Jan 18, 2023
4333c2f
Merge pull request #72 from dokku/dependabot/github_actions/hadolint/…
josegonzalez Jan 18, 2023
c492e0c
chore(deps): bump github.com/rs/zerolog from 1.28.0 to 1.29.0
dependabot[bot] Jan 27, 2023
b835562
Merge pull request #73 from dokku/dependabot/go_modules/github.com/rs…
josegonzalez Jan 27, 2023
ea1568e
chore(deps): bump ludeeus/action-shellcheck from 1.1.0 to 2.0.0
dependabot[bot] Jan 30, 2023
a0c25d4
Merge pull request #74 from dokku/dependabot/github_actions/ludeeus/a…
josegonzalez Jan 30, 2023
5d4c5c8
chore(deps): bump golang from 1.19.5-buster to 1.20.0-buster
dependabot[bot] Feb 2, 2023
8367f4c
Merge pull request #75 from dokku/dependabot/docker/golang-1.20.0-buster
josegonzalez Feb 2, 2023
10c9440
chore(deps): bump luizm/action-sh-checker from 0.5.0 to 0.7.0
dependabot[bot] Mar 1, 2023
74be2b8
chore(deps): bump github.com/aws/aws-lambda-go from 1.37.0 to 1.38.0
dependabot[bot] Mar 3, 2023
0661d47
chore(deps): bump golang from 1.20.0-buster to 1.20.2-buster
dependabot[bot] Mar 8, 2023
4c040ec
Merge pull request #80 from dokku/dependabot/docker/golang-1.20.2-buster
josegonzalez Mar 19, 2023
46355c6
Merge pull request #79 from dokku/dependabot/go_modules/github.com/aw…
josegonzalez Mar 19, 2023
375b415
Merge pull request #78 from dokku/dependabot/github_actions/luizm/act…
josegonzalez Mar 19, 2023
ab90d6f
chore(deps): bump github.com/mattn/go-isatty from 0.0.17 to 0.0.18
dependabot[bot] Mar 22, 2023
1cfa636
chore(deps): bump golang from 1.20.2-buster to 1.20.3-buster
dependabot[bot] Apr 5, 2023
8c3b3ba
chore(deps): bump github.com/aws/aws-lambda-go from 1.38.0 to 1.40.0
dependabot[bot] Apr 13, 2023
d3d9958
chore(deps): bump github.com/rs/zerolog from 1.29.0 to 1.29.1
dependabot[bot] Apr 13, 2023
5b76e21
Merge pull request #81 from dokku/dependabot/go_modules/github.com/ma…
josegonzalez Apr 28, 2023
e395155
Merge pull request #83 from dokku/dependabot/docker/golang-1.20.3-buster
josegonzalez Apr 28, 2023
46e5807
Merge pull request #84 from dokku/dependabot/go_modules/github.com/aw…
josegonzalez Apr 28, 2023
87e24e8
Merge pull request #85 from dokku/dependabot/go_modules/github.com/rs…
josegonzalez Apr 28, 2023
5b41104
chore(deps): bump golang from 1.20.3-buster to 1.20.4-buster
dependabot[bot] May 3, 2023
fbab3e6
chore(deps): bump github.com/aws/aws-lambda-go from 1.40.0 to 1.41.0
dependabot[bot] May 5, 2023
43af3db
Merge pull request #87 from dokku/dependabot/go_modules/github.com/aw…
josegonzalez May 13, 2023
5737413
Merge pull request #86 from dokku/dependabot/docker/golang-1.20.4-buster
josegonzalez May 13, 2023
432613e
fix: do not run linting twice for pull requests
josegonzalez May 13, 2023
280783f
chore(deps): bump github.com/mattn/go-isatty from 0.0.18 to 0.0.19
dependabot[bot] May 22, 2023
1021362
chore(deps): bump requests from 2.27.1 to 2.31.0 in /tests/pip-runtime
dependabot[bot] May 23, 2023
b545bda
chore(deps): bump requests from 2.27.1 to 2.31.0 in /tests/hooks
dependabot[bot] May 23, 2023
c58594a
chore(deps): bump requests from 2.27.1 to 2.31.0 in /tests/pipenv
dependabot[bot] May 23, 2023
6146662
Merge pull request #93 from dokku/dependabot/pip/tests/pipenv/request…
josegonzalez May 25, 2023
c3a7a64
Merge pull request #91 from dokku/dependabot/pip/tests/hooks/requests…
josegonzalez May 25, 2023
b917a77
Merge pull request #90 from dokku/dependabot/pip/tests/pip-runtime/re…
josegonzalez May 25, 2023
828c849
Merge pull request #88 from dokku/dependabot/go_modules/github.com/ma…
josegonzalez May 25, 2023
77ac7bb
chore(deps): bump requests from 2.27.1 to 2.31.0 in /tests/pip
dependabot[bot] May 25, 2023
08cdb4c
chore(deps): bump github.com/codeclysm/extract/v3 from 3.1.0 to 3.1.1
dependabot[bot] May 26, 2023
6065d29
Merge pull request #94 from dokku/dependabot/go_modules/github.com/co…
josegonzalez May 27, 2023
3e79932
Merge pull request #89 from dokku/dependabot/pip/tests/pip/requests-2…
josegonzalez May 27, 2023
13a71f4
chore(deps): bump github.com/josegonzalez/cli-skeleton
dependabot[bot] May 30, 2023
c517fa0
Merge pull request #95 from dokku/dependabot/go_modules/github.com/jo…
josegonzalez May 30, 2023
7914203
chore(deps): bump github.com/BurntSushi/toml from 1.2.1 to 1.3.0
dependabot[bot] May 31, 2023
2957338
Merge pull request #96 from dokku/dependabot/go_modules/github.com/Bu…
josegonzalez May 31, 2023
3fc8df5
chore(deps): bump github.com/BurntSushi/toml from 1.3.0 to 1.3.1
dependabot[bot] Jun 6, 2023
118bb41
chore(deps): bump golang from 1.20.4-buster to 1.20.5-buster
dependabot[bot] Jun 7, 2023
62ff837
Merge pull request #98 from dokku/dependabot/docker/golang-1.20.5-buster
josegonzalez Jun 8, 2023
883f4c9
Merge pull request #97 from dokku/dependabot/go_modules/github.com/Bu…
josegonzalez Jun 8, 2023
f090a6c
chore(deps): bump github.com/BurntSushi/toml from 1.3.1 to 1.3.2
dependabot[bot] Jun 8, 2023
c0f14c0
Merge pull request #99 from dokku/dependabot/go_modules/github.com/Bu…
josegonzalez Jun 8, 2023
abb1dd7
chore(deps): bump github.com/alexellis/go-execute from 0.5.0 to 0.6.0
dependabot[bot] Jul 5, 2023
906ffbd
Merge pull request #100 from dokku/dependabot/go_modules/github.com/a…
josegonzalez Jul 6, 2023
cab0229
docs: fix docblocks in readme
josegonzalez Jul 6, 2023
8798c34
Merge pull request #101 from dokku/fix-readme
josegonzalez Jul 6, 2023
35c16b5
chore: run go mod tidy
josegonzalez Jul 7, 2023
7f43abe
Merge pull request #102 from dokku/go-mod-tidy
josegonzalez Jul 7, 2023
627d133
chore: drop unused helper
josegonzalez Jul 7, 2023
d2b1c37
chore: rename internal variable
josegonzalez Jul 7, 2023
205122c
chore: rename function
josegonzalez Jul 7, 2023
e3c0c18
refactor: perform app building via docker image build
josegonzalez Jul 7, 2023
a38643b
fix: use correct path for go code
josegonzalez Jul 7, 2023
e43875d
fix: change directory properly and write lambda.zip to correct location
josegonzalez Jul 7, 2023
e236208
Merge pull request #103 from dokku/build-in-image
josegonzalez Jul 7, 2023
eca8d01
fix: ensure subprocesses are canceled correctly when the main process…
josegonzalez Jul 8, 2023
65811bc
Merge pull request #104 from dokku/ctrl-c-support
josegonzalez Jul 8, 2023
1fd1d9f
chore(deps): bump github.com/josegonzalez/cli-skeleton
dependabot[bot] Jul 10, 2023
be1327b
Merge pull request #105 from dokku/dependabot/go_modules/github.com/j…
josegonzalez Jul 10, 2023
986094a
chore(deps): bump certifi from 2023.5.7 to 2023.7.22 in /tests/pipenv
dependabot[bot] Jul 25, 2023
a2f4f61
Merge pull request #107 from dokku/dependabot/pip/tests/pipenv/certif…
josegonzalez Jul 26, 2023
4cfd9d1
chore(deps): bump github.com/rs/zerolog from 1.29.1 to 1.30.0
dependabot[bot] Jul 31, 2023
26edc73
Add Bookworm Support
Coffee2CodeNL Jul 31, 2023
0c38e3e
Tabs instead of Spaces / Yeet stretch
Coffee2CodeNL Jul 31, 2023
594864a
Merge pull request #108 from dokku/dependabot/go_modules/github.com/r…
josegonzalez Jul 31, 2023
7d0cff8
Merge pull request #109 from Coffee2CodeNL/add_bookworm_support
josegonzalez Aug 2, 2023
168ed40
Release 0.5.0
josegonzalez Aug 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ updates:
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
12 changes: 3 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,13 @@ on:
jobs:
build:
name: build
runs-on: ubuntu-20.04
strategy:
fail-fast: true
runs-on: ubuntu-22.04
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}

steps:
- uses: actions/checkout@v2
- name: debug home
run: |
echo "$PWD"
echo "$HOME"
- uses: actions/checkout@v3
- name: make version
run: |
make version .env.docker
Expand All @@ -35,7 +29,7 @@ jobs:
- run: make build-in-docker
- run: make validate-in-docker
- name: upload packages
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: build
path: build/**/*
Expand Down
26 changes: 16 additions & 10 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,31 @@
name: 'lint'

# yamllint disable-line rule:truthy
on: [push, pull_request]
on:
pull_request:
branches:
- '*'
push:
branches:
- 'master'

jobs:
hadolint:
name: hadolint
runs-on: ubuntu-20.04
steps:
- name: Clone
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Run hadolint
uses: hadolint/hadolint-action@c27bd9edc1e95eed30474db8f295ff5807ebca14
uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf
# v1.5.0 => c27bd9edc1e95eed30474db8f295ff5807ebca14

markdown-lint:
name: markdown-lint
runs-on: ubuntu-20.04
steps:
- name: Clone
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Run markdown-lint
uses: avto-dev/markdown-lint@04d43ee9191307b50935a753da3b775ab695eceb
# v1.5.0 => 04d43ee9191307b50935a753da3b775ab695eceb
Expand All @@ -33,9 +39,9 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Clone
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Run shellcheck
uses: ludeeus/action-shellcheck@94e0aab03ca135d11a35e5bfc14e6746dc56e7e9
uses: ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38
# 1.1.0 => 94e0aab03ca135d11a35e5bfc14e6746dc56e7e9
env:
SHELLCHECK_OPTS: -s bash
Expand All @@ -44,9 +50,9 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Clone
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Run shfmt
uses: luizm/action-sh-checker@7f44869033b40ee4ffe7dc76c87a1bc66e3d025a
uses: luizm/action-sh-checker@76ab0b22e1f194e4a582edc7969df6485c4e9246
# v0.3.0 => 7f44869033b40ee4ffe7dc76c87a1bc66e3d025a
env:
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
Expand All @@ -60,9 +66,9 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Clone
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Run yamllint
uses: ibiqlik/action-yamllint@c19bd0523a9011c3a3960fe6640a0882b59af15d
uses: ibiqlik/action-yamllint@2576378a8e339169678f9939646ee3ee325e845c
# v3.0.2 => c19bd0523a9011c3a3960fe6640a0882b59af15d
with:
config_file: '.github/linters/.yamllint.yml'
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM golang:1.19.0-buster
FROM golang:1.20.5-buster

# hadolint ignore=DL3027
RUN apt-get update \
&& apt install apt-transport-https build-essential curl gnupg2 jq lintian rpm rsync rubygems-integration ruby-dev ruby -qy \
&& apt install apt-transport-https build-essential curl gnupg2 jq lintian rsync rubygems-integration ruby-dev ruby -qy \
&& git clone https://github.com/bats-core/bats-core.git /tmp/bats-core \
&& /tmp/bats-core/install.sh /usr/local \
&& apt-get clean \
Expand Down
39 changes: 6 additions & 33 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ MAINTAINER_NAME = Jose Diaz-Gonzalez
REPOSITORY = lambda-builder
HARDWARE = $(shell uname -m)
SYSTEM_NAME = $(shell uname -s | tr '[:upper:]' '[:lower:]')
BASE_VERSION ?= 0.4.0
BASE_VERSION ?= 0.5.0
IMAGE_NAME ?= $(MAINTAINER)/$(REPOSITORY)
PACKAGECLOUD_REPOSITORY ?= dokku/dokku-betafish

Expand Down Expand Up @@ -50,7 +50,6 @@ build: prebuild
@$(MAKE) build/deb/$(NAME)_$(VERSION)_amd64.deb
@$(MAKE) build/deb/$(NAME)_$(VERSION)_arm64.deb
@$(MAKE) build/deb/$(NAME)_$(VERSION)_armhf.deb
@$(MAKE) build/rpm/$(NAME)-$(VERSION)-1.x86_64.rpm

build-docker-image:
docker build --rm -q -f Dockerfile -t $(IMAGE_NAME):build .
Expand Down Expand Up @@ -156,27 +155,6 @@ build/deb/$(NAME)_$(VERSION)_armhf.deb: build/linux/$(NAME)-armhf
build/linux/$(NAME)-armhf=/usr/bin/$(NAME) \
LICENSE=/usr/share/doc/$(NAME)/copyright

build/rpm/$(NAME)-$(VERSION)-1.x86_64.rpm: build/linux/$(NAME)-amd64
export SOURCE_DATE_EPOCH=$(shell git log -1 --format=%ct) \
&& mkdir -p build/rpm \
&& fpm \
--architecture x86_64 \
--category utils \
--description "$$PACKAGE_DESCRIPTION" \
--input-type dir \
--license 'MIT License' \
--maintainer "$(MAINTAINER_NAME) <$(EMAIL)>" \
--name $(NAME) \
--output-type rpm \
--package build/rpm/$(NAME)-$(VERSION)-1.x86_64.rpm \
--rpm-os linux \
--url "https://github.com/$(MAINTAINER)/$(REPOSITORY)" \
--vendor "" \
--version $(VERSION) \
--verbose \
build/linux/$(NAME)-amd64=/usr/bin/$(NAME) \
LICENSE=/usr/share/doc/$(NAME)/copyright

clean:
rm -rf build release validation

Expand Down Expand Up @@ -208,32 +186,28 @@ release: build bin/gh-release bin/gh-release-body
cp build/deb/$(NAME)_$(VERSION)_amd64.deb release/$(NAME)_$(VERSION)_amd64.deb
cp build/deb/$(NAME)_$(VERSION)_arm64.deb release/$(NAME)_$(VERSION)_arm64.deb
cp build/deb/$(NAME)_$(VERSION)_armhf.deb release/$(NAME)_$(VERSION)_armhf.deb
cp build/rpm/$(NAME)-$(VERSION)-1.x86_64.rpm release/$(NAME)-$(VERSION)-1.x86_64.rpm
bin/gh-release create $(MAINTAINER)/$(REPOSITORY) $(VERSION) $(shell git rev-parse --abbrev-ref HEAD)
bin/gh-release-body $(MAINTAINER)/$(REPOSITORY) v$(VERSION)

release-packagecloud:
@$(MAKE) release-packagecloud-deb
@$(MAKE) release-packagecloud-rpm

release-packagecloud-deb: build/deb/$(NAME)_$(VERSION)_amd64.deb build/deb/$(NAME)_$(VERSION)_arm64.deb build/deb/$(NAME)_$(VERSION)_armhf.deb
package_cloud push $(PACKAGECLOUD_REPOSITORY)/ubuntu/bionic build/deb/$(NAME)_$(VERSION)_amd64.deb
package_cloud push $(PACKAGECLOUD_REPOSITORY)/ubuntu/focal build/deb/$(NAME)_$(VERSION)_amd64.deb
package_cloud push $(PACKAGECLOUD_REPOSITORY)/ubuntu/jammy build/deb/$(NAME)_$(VERSION)_amd64.deb
package_cloud push $(PACKAGECLOUD_REPOSITORY)/debian/stretch build/deb/$(NAME)_$(VERSION)_amd64.deb
package_cloud push $(PACKAGECLOUD_REPOSITORY)/debian/buster build/deb/$(NAME)_$(VERSION)_amd64.deb
package_cloud push $(PACKAGECLOUD_REPOSITORY)/debian/bullseye build/deb/$(NAME)_$(VERSION)_amd64.deb
package_cloud push $(PACKAGECLOUD_REPOSITORY)/debian/bookworm build/deb/$(NAME)_$(VERSION)_amd64.deb
package_cloud push $(PACKAGECLOUD_REPOSITORY)/ubuntu/focal build/deb/$(NAME)_$(VERSION)_arm64.deb
package_cloud push $(PACKAGECLOUD_REPOSITORY)/ubuntu/jammy build/deb/$(NAME)_$(VERSION)_arm64.deb
package_cloud push $(PACKAGECLOUD_REPOSITORY)/debian/bullseye build/deb/$(NAME)_$(VERSION)_arm64.deb
package_cloud push $(PACKAGECLOUD_REPOSITORY)/debian/bookworm build/deb/$(NAME)_$(VERSION)_arm64.deb
package_cloud push $(PACKAGECLOUD_REPOSITORY)/ubuntu/focal build/deb/$(NAME)_$(VERSION)_armhf.deb
package_cloud push $(PACKAGECLOUD_REPOSITORY)/ubuntu/jammy build/deb/$(NAME)_$(VERSION)_armhf.deb
package_cloud push $(PACKAGECLOUD_REPOSITORY)/raspbian/buster build/deb/$(NAME)_$(VERSION)_armhf.deb
package_cloud push $(PACKAGECLOUD_REPOSITORY)/raspbian/bullseye build/deb/$(NAME)_$(VERSION)_armhf.deb

release-packagecloud-rpm: build/rpm/$(NAME)-$(VERSION)-1.x86_64.rpm
package_cloud push $(PACKAGECLOUD_REPOSITORY)/el/7 build/rpm/$(NAME)-$(VERSION)-1.x86_64.rpm

validate:
mkdir -p validation
lintian build/deb/$(NAME)_$(VERSION)_amd64.deb || true
Expand All @@ -248,13 +222,12 @@ validate:
cd validation && ar -x ../build/deb/$(NAME)_$(VERSION)_amd64.deb
cd validation && ar -x ../build/deb/$(NAME)_$(VERSION)_arm64.deb
cd validation && ar -x ../build/deb/$(NAME)_$(VERSION)_armhf.deb
cd validation && rpm2cpio ../build/rpm/$(NAME)-$(VERSION)-1.x86_64.rpm > $(NAME)-$(VERSION)-1.x86_64.cpio
ls -lah build/deb build/rpm validation
ls -lah build/deb validation
sha1sum build/deb/$(NAME)_$(VERSION)_amd64.deb
sha1sum build/deb/$(NAME)_$(VERSION)_arm64.deb
sha1sum build/deb/$(NAME)_$(VERSION)_armhf.deb
sha1sum build/rpm/$(NAME)-$(VERSION)-1.x86_64.rpm
cd /home/runner/work/$(REPOSITORY)/$(REPOSITORY) && bats test.bats

prebuild:
true
git config --global --add safe.directory $(shell pwd)
git status
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ I don't want to go through the motions of figuring out the correct way to build

```shell
# substitute the version number as desired
go build -ldflags "-X main.Version=0.4.0"
go build -ldflags "-X main.Version=0.5.0"
```

## Usage
Expand Down Expand Up @@ -57,7 +57,7 @@ A `builder` can be chosen by a flag. Note that while a `builder` may be selected

```shell
lambda-builder build --generate-image --builder dotnet
````
```

#### Building an image

Expand All @@ -81,7 +81,7 @@ By default, any web process started by the built image starts on port `9001`. Th
```shell
# build the image and ensure it starts on port 5000 by default
lambda-builder build --generate-image --port 5000
````
```

Custom environment variables can be supplied for the built image by specifying one or more `--image-env` flags. The `--image-env` flag takes `KEY=VALUE` pairs.

Expand All @@ -94,7 +94,7 @@ The `build-image` and `run-image` can also be specified as flags:

```shell
lambda-builder build --generate-image --build-image "mlupin/docker-lambda:dotnetcore3.1-build" --run-image "mlupin/docker-lambda:dotnetcore3.1"
````
```

A generated image can be run locally with the following line:

Expand Down
7 changes: 0 additions & 7 deletions builders/dotnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ indent() {
sed -u "s/^/ /"
}

puts-header() {
echo "=====> $*"
}

puts-step() {
echo "-----> $*"
}
Expand Down Expand Up @@ -103,11 +99,8 @@ hook-package() {

puts-step "Creating package at lambda.zip"
zip -q -r lambda.zip ./*
mv lambda.zip /tmp/task/lambda.zip
rm -rf lambda.zip
}

cp -a /tmp/task/. /var/task
hook-pre-compile
install-dotnet
hook-post-compile
Expand Down
10 changes: 3 additions & 7 deletions builders/go.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,6 @@ indent() {
sed -u "s/^/ /"
}

puts-header() {
echo "=====> $*"
}

puts-step() {
echo "-----> $*"
}
Expand Down Expand Up @@ -117,11 +113,11 @@ hook-package() {

puts-step "Creating package at lambda.zip"
zip -q -r lambda.zip bootstrap
mv lambda.zip /tmp/task/lambda.zip
rm -rf lambda.zip
mv lambda.zip /var/task/lambda.zip
}

cp -a /tmp/task/. /go/src/handler
cp -a /var/task/. /go/src/handler
cd /go/src/handler
hook-pre-compile
install-gomod
hook-post-compile
Expand Down
Loading
Loading