Skip to content

Instantly share code, notes, and snippets.

@jdolitsky
Created July 21, 2022 04:55
Show Gist options
  • Save jdolitsky/af9edfcdbb7383a023259101f30e7e3e to your computer and use it in GitHub Desktop.
Save jdolitsky/af9edfcdbb7383a023259101f30e7e3e to your computer and use it in GitHub Desktop.
Secure Your Software Factory with melange and apko
package:
name: hello-server
version: 0.1.0
description: friendly little webserver
target-architecture:
- all
copyright:
- license: Apache-2.0
paths:
- "*"
environment:
contents:
repositories:
- https://dl-cdn.alpinelinux.org/alpine/edge/main
- https://dl-cdn.alpinelinux.org/alpine/edge/community
packages:
- alpine-baselayout-data
- ca-certificates-bundle
- busybox
- go
pipeline:
- name: Build Go application
runs: |
CGO_ENABLED=0 go build -o "${{targets.destdir}}/usr/bin/hello-server" .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment