Skip to content

Commit bfcb363

Browse files
authored
Merge pull request #2 from larkinwc/feature/fix-release
feat: Fixing release commands in makefile
2 parents 6a971e6 + 310435c commit bfcb363

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+113
-149
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ jobs:
3030
version: latest
3131
args: release --clean
3232
env:
33-
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
33+
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ release_todos.md
55

66

77
# package
8-
lxc-compose
8+
lxc-compose
9+
templates

.goreleaser.yml

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,6 @@ archives:
4040
- README.md
4141
- LICENSE*
4242

43-
checksum:
44-
name_template: 'checksums.txt'
45-
46-
snapshot:
47-
name_template: "{{ incpatch .Version }}-next"
48-
4943
changelog:
5044
sort: asc
5145
filters:
@@ -55,29 +49,4 @@ changelog:
5549
- '^ci:'
5650
- '^chore:'
5751
- Merge pull request
58-
- Merge branch
59-
60-
brews:
61-
- name: proxmox-lxc-compose
62-
tap:
63-
owner: larkinwc
64-
name: homebrew-tap
65-
folder: Formula
66-
homepage: "https://github.com/larkinwc/proxmox-lxc-compose"
67-
description: "A docker-compose like tool for managing LXC containers in Proxmox"
68-
license: "MIT"
69-
test: |
70-
system "#{bin}/lxc-compose --version"
71-
install: |
72-
bin.install "lxc-compose"
73-
74-
dockers:
75-
- image_templates:
76-
- "ghcr.io/larkinwc/proxmox-lxc-compose:{{ .Version }}"
77-
- "ghcr.io/larkinwc/proxmox-lxc-compose:latest"
78-
dockerfile: Dockerfile
79-
build_flag_templates:
80-
- "--label=org.opencontainers.image.created={{.Date}}"
81-
- "--label=org.opencontainers.image.title={{.ProjectName}}"
82-
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
83-
- "--label=org.opencontainers.image.version={{.Version}}"
52+
- Merge branch

Dockerfile

Lines changed: 0 additions & 16 deletions
This file was deleted.

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,21 +62,21 @@ CURRENT_VERSION=$(shell git describe --tags --abbrev=0 2>/dev/null || echo "v0.0
6262

6363
release-major: ## Create a new major release
6464
@echo "Current version: $(CURRENT_VERSION)"
65-
@NEW_VERSION=$$(semver bump major $(CURRENT_VERSION)) && \
65+
@NEW_VERSION=$$(echo "$(CURRENT_VERSION)" | awk -F. '{gsub("v",""); printf "v%d.0.0", $$1+1}') && \
6666
echo "Creating major release: $$NEW_VERSION" && \
6767
git tag -a $$NEW_VERSION -m "Major release $$NEW_VERSION" && \
6868
git push origin $$NEW_VERSION
6969

7070
release-minor: ## Create a new minor release
7171
@echo "Current version: $(CURRENT_VERSION)"
72-
@NEW_VERSION=$$(semver bump minor $(CURRENT_VERSION)) && \
72+
@NEW_VERSION=$$(echo "$(CURRENT_VERSION)" | awk -F. '{gsub("v",""); printf "v%d.%d.0", $$1, $$2+1}') && \
7373
echo "Creating minor release: $$NEW_VERSION" && \
7474
git tag -a $$NEW_VERSION -m "Minor release $$NEW_VERSION" && \
7575
git push origin $$NEW_VERSION
7676

7777
release-patch: ## Create a new patch release
7878
@echo "Current version: $(CURRENT_VERSION)"
79-
@NEW_VERSION=$$(semver bump patch $(CURRENT_VERSION)) && \
79+
@NEW_VERSION=$$(echo "$(CURRENT_VERSION)" | awk -F. '{gsub("v",""); printf "v%d.%d.%d", $$1, $$2, $$3+1}') && \
8080
echo "Creating patch release: $$NEW_VERSION" && \
8181
git tag -a $$NEW_VERSION -m "Patch release $$NEW_VERSION" && \
8282
git push origin $$NEW_VERSION

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ The main purpose of the CLI is to read a lxc-compose.yml file and use it to crea
129129
## Installation
130130

131131
```bash
132-
go install github.com/yourusername/proxmox-lxc-compose@latest
132+
go install github.com/larkinwc/proxmox-lxc-compose@latest
133133
```
134134

135135
Or build from source:
@@ -140,6 +140,11 @@ cd proxmox-lxc-compose
140140
go build -o lxc-compose ./cmd/lxc-compose
141141
```
142142

143+
You can optionally move the binary to your PATH:
144+
```bash
145+
sudo mv lxc-compose /usr/local/bin/
146+
```
147+
143148
## Configuration
144149

145150
Configuration can be provided via:
@@ -179,7 +184,7 @@ lxc-compose ps
179184
lxc-compose logs [container_name]
180185

181186
# Pull container images
182-
lxc-compose pull [image_name]
187+
lxc-compose images pull [registry/repository:tag]
183188

184189
# Convert Docker images to LXC
185190
lxc-compose convert [image_name]

cmd/lxc-compose/convert.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"path/filepath"
66

7-
"proxmox-lxc-compose/pkg/oci"
7+
"github.com/larkinwc/proxmox-lxc-compose/pkg/oci"
88

99
"github.com/spf13/cobra"
1010
)

cmd/lxc-compose/down.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package main
33
import (
44
"fmt"
55

6-
"proxmox-lxc-compose/pkg/common"
7-
"proxmox-lxc-compose/pkg/container"
6+
"github.com/larkinwc/proxmox-lxc-compose/pkg/common"
7+
"github.com/larkinwc/proxmox-lxc-compose/pkg/container"
88

99
"github.com/spf13/cobra"
1010
)

cmd/lxc-compose/logs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"os"
77
"time"
88

9-
"proxmox-lxc-compose/pkg/container"
9+
"github.com/larkinwc/proxmox-lxc-compose/pkg/container"
1010

1111
"github.com/spf13/cobra"
1212
)

cmd/lxc-compose/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"os"
66

7-
"proxmox-lxc-compose/pkg/logging"
7+
"github.com/larkinwc/proxmox-lxc-compose/pkg/logging"
88

99
"github.com/spf13/cobra"
1010
"github.com/spf13/viper"

0 commit comments

Comments
 (0)