Skip to content

Commit

Permalink
1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-yurchenko committed Jul 31, 2023
1 parent f3741ef commit e062dfc
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
# Changelog

## [1.0.1] - 2023-07-31

### Fixed

- Treat empty `UPDATE_TAGS` as `false`

## [1.0.0] - 2023-07-28

_First Release_

[1.0.1]: https://github.com/anton-yurchenko/changelog-version/compare/v1.0.0...v1.0.1
[1.0.0]: https://github.com/anton-yurchenko/changelog-version/releases/tag/v1.0.0
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN CGO_ENABLED=0 go build -ldflags="-w -s" -o /opt/app

FROM busybox:1.36
LABEL org.opencontainers.image.source="https://github.com/anton-yurchenko/changelog-version"
LABEL org.opencontainers.image.version="v1.0.0"
LABEL org.opencontainers.image.version="v1.0.1"
LABEL org.opencontainers.image.authors="Anton Yurchenko <anton.doar@gmail.com>"
LABEL org.opencontainers.image.licenses="MIT"
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
Expand Down
10 changes: 7 additions & 3 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,13 @@ func new() (*app, error) {
return nil, fmt.Errorf("invalid semantic version (make sure to add a 'v' prefix: vX.X.X)")
}

u, err := strconv.ParseBool(os.Getenv("UPDATE_TAGS"))
if err != nil {
return nil, utils.Wrap("error parsing UPDATE_TAGS environmental variable: %s", err)
var u bool
if os.Getenv("UPDATE_TAGS") != "" {
var err error
u, err = strconv.ParseBool(os.Getenv("UPDATE_TAGS"))
if err != nil {
return nil, utils.Wrap("error parsing UPDATE_TAGS environmental variable: %s", err)
}
}

g, err := repository.New(os.Getenv("GITHUB_TOKEN"), os.Getenv("GITHUB_ACTOR"))
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
)

const Version string = "1.0.0"
const Version string = "1.0.1"

func init() {
vars := []string{
Expand Down

0 comments on commit e062dfc

Please sign in to comment.