Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout GitHub Action
uses: actions/checkout@main
uses: actions/checkout@v4

- name: Fetch tags
run: git fetch --force --tags
Expand All @@ -23,14 +23,14 @@ jobs:
run: echo ${{github.ref_name}}

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}

- name: Build Image
run: docker build . --tag ghcr.io/phpgeeks-club/geeksonator:${{github.ref_name}}
run: docker build -t ghcr.io/phpgeeks-club/geeksonator:${{github.ref_name}} .

- name: Push Image
run: docker push ghcr.io/phpgeeks-club/geeksonator:${{github.ref_name}}
42 changes: 0 additions & 42 deletions .github/workflows/release.yml

This file was deleted.

15 changes: 0 additions & 15 deletions .goreleaser.yaml

This file was deleted.

6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Run
# docker build -f ./Dockerfile -t geeksonator:latest .
# docker build --no-cache -f ./Dockerfile -t geeksonator:latest .
# docker run -d --env-file=/path/to/.env --name geeksonator.app geeksonator:latest .

##################################
Expand Down Expand Up @@ -34,7 +34,9 @@ WORKDIR /app
COPY . .

# Build the binary.
RUN make build
RUN go mod tidy
RUN go mod vendor
RUN GOOS=linux GOARCH=amd64 go build -trimpath -ldflags "-s -w" -o /app/bin/geeksonator /app/cmd/geeksonator

##############################
# STEP 2 build a small image #
Expand Down
9 changes: 2 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,12 @@ test:

.PHONY: docker_build
docker_build:
@docker build -f ./Dockerfile -t geeksonator_dev .
@docker build --no-cache -f ./Dockerfile -t geeksonator_dev .

.PHONY: docker_run
docker_run:
@GOOS=linux GOARCH=amd64 go build -trimpath -ldflags "-s -w" -o ./bin/geeksonator ./cmd/geeksonator

.PHONY: build
build: deps
@GOOS=linux GOARCH=amd64 go build -trimpath -ldflags "-s -w" -o ./bin/geeksonator ./cmd/geeksonator
@docker run -d --env-file=./.env --name geeksonator.dev geeksonator_dev .

.PHONY: tools
tools: deps
@go install github.com/vektra/mockery/v2@v2.36.0
@go install github.com/goreleaser/goreleaser@v1.21.2
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

[![Go Report Card](https://goreportcard.com/badge/github.com/phpgeeks-club/admin-bot?style=flat-square)](https://goreportcard.com/report/github.com/phpgeeks-club/admin-bot)
[![Audit](https://github.com/phpgeeks-club/admin-bot/actions/workflows/audit.yml/badge.svg?branch=master)](https://github.com/phpgeeks-club/admin-bot/actions/workflows/audit.yml)
![GitHub release (with filter)](https://img.shields.io/github/v/release/phpgeeks-club/admin-bot)
![License](https://img.shields.io/github/license/phpgeeks-club/admin-bot.svg)

## Install
Expand Down