Skip to content

Commit

Permalink
Merge pull request #101 from djkormo/release-2.1.3
Browse files Browse the repository at this point in the history
adding release 2.1.3
  • Loading branch information
djkormo committed Aug 18, 2024
2 parents 305292d + 572f4cc commit 7b4fafd
Show file tree
Hide file tree
Showing 8 changed files with 94 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up GO
uses: actions/setup-go@v1
with:
go-version: 1.13
go-version: 1.22

- name: Checkout code
uses: actions/checkout@master
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Golang lint issuer
on:
workflow_dispatch:
push:
paths:
- 'api/**.go'
- 'cmd/**.go'
- 'globals/**.go'
- 'config/**.go'
- 'controllers/**.go'
- 'internal/**.go'
- 'version/**.go'
- '**.go'

branches:
- main
pull_request:

permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
pull-requests: read

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
args: --timeout=3m
version: v1.58
skip-cache: true
skip-save-cache: true
cache-invalidation-interval: 15
48 changes: 48 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Publish Docker image on Release

on:
workflow_dispatch:
branches: [ main ]
release:
types: [published]


jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master

- name: Get the tag version for building image
id: get_version
run: echo "VERSION=$(echo $GITHUB_REF | cut -d / -f 3)" >> $GITHUB_OUTPUT


- name: Get current date for building image
id: get_date
run: echo "BUILD_TIME=$(date -u '+%Y-%m-%d_%H:%M:%S')" >> $GITHUB_OUTPUT

- name: Get commit hash for building image
id: get_commit
run: echo "COMMIT=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Print name
id: print_args
run: echo "Hello VERSION. ${{ steps.get_version.outputs.VERSION }} . COMMIT. ${{ steps.get_commit.outputs.COMMIT }} BUILD_TIME. ${{steps.get_date.outputs.BUILD_TIME }}"


- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
PROJECT: github.com/djkormo/adcs-issuer
COMMIT: ${{ steps.get_commit.outputs.COMMIT }}
VERSION: ${{ steps.get_version.outputs.VERSION }}
BUILD_TIME: ${{steps.get_date.outputs.BUILD_TIME }}
with:
name: djkormo/adcs-issuer
buildargs: PROJECT,COMMIT,BUILD_TIME,VERSION
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: "latest,${{ env.VERSION }}"
tag_semver: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ adcs-sim
*.key
*-all.yaml
*.exe
adcs-issuer
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM golang:1.21 as builder
FROM golang:1.22 as builder


ARG VERSION
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ GOLANGCI_LINT = $(LOCALBIN)/golangci-lint-$(GOLANGCI_LINT_VERSION)
KUSTOMIZE_VERSION ?= v5.3.0
CONTROLLER_TOOLS_VERSION ?= v0.14.0
ENVTEST_VERSION ?= latest
GOLANGCI_LINT_VERSION ?= v1.54.2
GOLANGCI_LINT_VERSION ?= v1.58.2

.PHONY: kustomize
kustomize: $(KUSTOMIZE) ## Download kustomize locally if necessary.
Expand Down
2 changes: 1 addition & 1 deletion deploy.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
APP_NAME=adcs-issuer
DOCKER_REPO=djkormo
VERSION=2.1.2
VERSION=2.1.3



2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/nokia/adcs-issuer

go 1.21
go 1.22

require (
github.com/Azure/go-ntlmssp v0.0.0-20221128193559-754e69321358
Expand Down

0 comments on commit 7b4fafd

Please sign in to comment.