Skip to content

Instantly share code, notes, and snippets.

View jorlugaqui's full-sized avatar

Jorge Galvis jorlugaqui

View GitHub Profile
@jorlugaqui
jorlugaqui / api_integration_tests.yml
Created August 8, 2020 19:28
Github CI Workflow for integration tests
name: CI - Integration Test
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
@jorlugaqui
jorlugaqui / Dockerfile
Created January 11, 2020 00:19
ahm-docker-initial
### Certs
FROM alpine:latest as certs
RUN apk --update add ca-certificates
### Base
FROM golang:1.12.14-alpine3.10 as base
ENV CGO_ENABLED=0 \
GOOS=linux \
GOARCH=amd64
@jorlugaqui
jorlugaqui / main.go
Created January 10, 2020 23:36
ahm-main-initial
package main
import (
"ahm/callbacks"
"log"
"net/http"
)
func handleRequest() {
http.HandleFunc("/", callbacks.HomePage)
@jorlugaqui
jorlugaqui / home.go
Created January 10, 2020 23:30
ahm-home-initial
package callbacks
import (
"fmt"
"net/http"
)
func HomePage(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Welcome to the homepage")
}