Skip to content
This repository was archived by the owner on Oct 11, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
34 changes: 0 additions & 34 deletions .drone.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: push-dockerhub

on:
push:
branches:
- "main"
- "master"

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
-
name: Build and push
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: niklasnikki/hello-world:latest
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
/dist
*.swp
/.trash-cache
hello-world
.idea
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM golang AS build
COPY . /go/src/hello-world
WORKDIR /go/src/hello-world
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o hello-world .

FROM rawmind/alpine-base:3.7-0
COPY --from=build /go/src/hello-world/hello-world /opt/hello-world/
COPY img/* /opt/hello-world/
WORKDIR /opt/hello-world
ENTRYPOINT ["/opt/hello-world/hello-world"]
16 changes: 0 additions & 16 deletions Dockerfile.dapper

This file was deleted.

23 changes: 0 additions & 23 deletions Makefile

This file was deleted.

5 changes: 5 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module hello-world

go 1.19

require github.com/rancher/hello-world v0.1.2
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/rancher/hello-world v0.1.2 h1:dnkMcxtbfFAts1pEvsXLHwBRGHipV6BRjxTmPvm3wvM=
github.com/rancher/hello-world v0.1.2/go.mod h1:GJ1aiitLrwBY87NJ4P4ug9uk8t+QycSNguIyQsXpH5s=
5 changes: 0 additions & 5 deletions package/Dockerfile

This file was deleted.

31 changes: 0 additions & 31 deletions scripts/build

This file was deleted.

9 changes: 0 additions & 9 deletions scripts/ci

This file was deleted.

11 changes: 0 additions & 11 deletions scripts/entry

This file was deleted.

79 changes: 0 additions & 79 deletions scripts/package

This file was deleted.

3 changes: 0 additions & 3 deletions scripts/release

This file was deleted.

10 changes: 0 additions & 10 deletions scripts/test

This file was deleted.

19 changes: 0 additions & 19 deletions scripts/validate

This file was deleted.

14 changes: 0 additions & 14 deletions scripts/version

This file was deleted.