Skip to content

Commit 48e1baa

Browse files
committedMay 6, 2024·
go update and github actions
1 parent 35a9af9 commit 48e1baa

File tree

11 files changed

+99
-88
lines changed

11 files changed

+99
-88
lines changed
 

‎.circleci/config.yml

-82
This file was deleted.

‎.github/workflows/build.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# This workflow will build a golang project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
3+
4+
name: Build
5+
6+
on:
7+
push:
8+
branches: [ "master" ]
9+
pull_request:
10+
branches: [ "master" ]
11+
12+
jobs:
13+
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
19+
- name: Set up Go
20+
uses: actions/setup-go@v4
21+
with:
22+
go-version: 1.20.1
23+
24+
- name: Install dependencies
25+
run: go get .
26+
27+
- name: Build
28+
run: go build -v ./...
29+
30+
- name: Test
31+
run: go test -v ./...
32+
33+
# - name: Build the Docker image
34+
# run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
35+
36+
sonarcloud:
37+
name: SonarCloud
38+
runs-on: ubuntu-latest
39+
steps:
40+
- uses: actions/checkout@v3
41+
with:
42+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
43+
- name: SonarCloud Scan
44+
uses: SonarSource/sonarcloud-github-action@master
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} # Needed to get PR information, if any
47+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
48+
49+
50+
51+

‎.github/workflows/docker.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
# GitHub recommends pinning actions to a commit SHA.
7+
# To get a newer version, you will need to update the SHA.
8+
# You can also reference a tag or branch, but the action may change without warning.
9+
10+
name: Publish Docker image
11+
12+
on:
13+
release:
14+
types: [published]
15+
16+
jobs:
17+
push_to_registry:
18+
name: Push Docker image to Docker Hub
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Check out the repo
22+
uses: actions/checkout@v3
23+
24+
- name: Log in to Docker Hub
25+
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
26+
with:
27+
username: ${{ secrets.DOCKER_USERNAME }}
28+
password: ${{ secrets.DOCKER_PASSWORD }}
29+
30+
- name: Extract metadata (tags, labels) for Docker
31+
id: meta
32+
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
33+
with:
34+
images: ulboralabs/ulboracms
35+
36+
- name: Build and push Docker image
37+
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
38+
with:
39+
context: .
40+
push: true
41+
tags: ${{ steps.meta.outputs.tags }}
42+
labels: ${{ steps.meta.outputs.labels }}

‎data/contentStore/about.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"name":"about","title":"About Ulbora CMS","subject":"Ulbora CMS, a very fast CMS","author":"Ken Williamson","createDate":"2020-04-08T13:03:53.550131465-04:00","modifiedDate":"2023-03-24T14:38:39.929196149-04:00","hits":134,"metaAuthorName":"","metaDesc":"Blogging platform","metaKeyWords":"ulbora cms, blog, blogger","metaRobotKeyWords":"","text":"PHA+VWxib3JhIENNUyBpcyBtb3JlIHRoYW4ganVzdCBhIGJsb2dnaW5nIHBsYXRmb3JtLCB5b3UgY2FuIGFsc28gYnVpbGQgd2ViIHNpdGVzIHdpdGggaXQuPC9wPg0KPHA+QXMgZm9yIGJsb2dnaW5nLCBVbGJvcmEgQ01TIGlzIHBlcmZlY3QgZm9yIGJsb2dnaW5nIGFuZCBhbGxvd3MgeW91ciBzaXRlIHRvIHNlcnZlIHVwIHBhZ2VzIGZhc3QuPC9wPg0KPHA+VWxib3JhIENNUyBpcyBhbHNvIHBlcmZlY3QgZm9yIHdlYiBzaXRlcyBmb3IgYm90aCBjb21wYW5pZXMgYW5kIGluZGl2aWR1YWxzLjwvcD4NCjxwPlVsYm9yYSBDTVMgcnVucyBpbiA8ZW0+PHN0cm9uZz5tZW1vcnk8L3N0cm9uZz48L2VtPiBhbmQgcmVxdWlyZXMgPHNwYW4gc3R5bGU9InRleHQtZGVjb3JhdGlvbjogdW5kZXJsaW5lOyI+bm8gZGF0YWJhc2UgYmFja2VuZDwvc3Bhbj4uPC9wPg==","TextHTML":"","archived":false,"visible":true,"UseModifiedDate":false,"blogPost":false}
1+
{"name":"about","title":"About Ulbora CMS","subject":"Ulbora CMS, a very fast CMS","author":"Ken Williamson","createDate":"2020-04-08T13:03:53.550131465-04:00","modifiedDate":"2024-05-06T15:41:07.817402173-04:00","hits":140,"metaAuthorName":"","metaDesc":"Blogging platform","metaKeyWords":"ulbora cms, blog, blogger","metaRobotKeyWords":"","text":"PHA+VWxib3JhIENNUyBpcyBtb3JlIHRoYW4ganVzdCBhIGJsb2dnaW5nIHBsYXRmb3JtLCB5b3UgY2FuIGFsc28gYnVpbGQgd2ViIHNpdGVzIHdpdGggaXQuPC9wPg0KPHA+QXMgZm9yIGJsb2dnaW5nLCBVbGJvcmEgQ01TIGlzIHBlcmZlY3QgZm9yIGJsb2dnaW5nIGFuZCBhbGxvd3MgeW91ciBzaXRlIHRvIHNlcnZlIHVwIHBhZ2VzIGZhc3QuPC9wPg0KPHA+VWxib3JhIENNUyBpcyBhbHNvIHBlcmZlY3QgZm9yIHdlYiBzaXRlcyBmb3IgYm90aCBjb21wYW5pZXMgYW5kIGluZGl2aWR1YWxzLjwvcD4NCjxwPlVsYm9yYSBDTVMgcnVucyBpbiA8ZW0+PHN0cm9uZz5tZW1vcnk8L3N0cm9uZz48L2VtPiBhbmQgcmVxdWlyZXMgPHNwYW4gc3R5bGU9InRleHQtZGVjb3JhdGlvbjogdW5kZXJsaW5lOyI+bm8gZGF0YWJhc2UgYmFja2VuZDwvc3Bhbj4uPC9wPg==","TextHTML":"","archived":false,"visible":true,"UseModifiedDate":false,"blogPost":false}

‎data/contentStore/home.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"name":"home","title":"Home Page","subject":"Ulbora CMS","author":"Ken Williamson","createDate":"2020-04-09T12:32:39.806769116-04:00","modifiedDate":"2023-03-27T19:45:46.755449572-04:00","hits":235,"metaAuthorName":"","metaDesc":"","metaKeyWords":"UlboraCMS, CMS, Ulbora, templates, screens","metaRobotKeyWords":"","text":"PHA+QSBUaGVtZSBmb3IgVWxib3JhIENNUyBhbmQgdGhlcmUgYXJlIG90aGVycy48L3A+","TextHTML":"","archived":false,"visible":true,"UseModifiedDate":false,"blogPost":false}
1+
{"name":"home","title":"Home Page","subject":"Ulbora CMS","author":"Ken Williamson","createDate":"2020-04-09T12:32:39.806769116-04:00","modifiedDate":"2024-05-06T15:41:07.817101117-04:00","hits":241,"metaAuthorName":"","metaDesc":"","metaKeyWords":"UlboraCMS, CMS, Ulbora, templates, screens","metaRobotKeyWords":"","text":"PHA+QSBUaGVtZSBmb3IgVWxib3JhIENNUyBhbmQgdGhlcmUgYXJlIG90aGVycy48L3A+","TextHTML":"","archived":false,"visible":true,"UseModifiedDate":false,"blogPost":false}

‎go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/Ulbora/ulboracms
22

3-
go 1.20
3+
go 1.22
44

55
require (
66
github.com/Ulbora/Level_Logger v1.0.2

‎main

912 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"name":"books1","title":"the best book ever ever","subject":"","author":"","createDate":"2020-03-23T12:58:49.01992684-04:00","modifiedDate":"2023-03-27T19:41:00.783162844-04:00","hits":104,"metaAuthorName":"ken test stuff","metaDesc":"a booktest stuff","metaKeyWords":"","metaRobotKeyWords":"","text":"c29tZSBib29rIHRleHQgdGVzdCBzdHVmZg==","TextHTML":"","archived":false,"visible":true,"UseModifiedDate":false,"blogPost":false}
1+
{"name":"books1","title":"the best book ever ever","subject":"","author":"","createDate":"2020-03-23T12:58:49.01992684-04:00","modifiedDate":"2024-05-06T15:43:54.023185316-04:00","hits":106,"metaAuthorName":"ken test stuff","metaDesc":"a booktest stuff","metaKeyWords":"","metaRobotKeyWords":"","text":"c29tZSBib29rIHRleHQgdGVzdCBzdHVmZg==","TextHTML":"","archived":false,"visible":true,"UseModifiedDate":false,"blogPost":false}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"name":"books1","title":"the best book ever ever","subject":"","author":"","createDate":"2020-03-23T12:58:49.01992684-04:00","modifiedDate":"2023-03-24T14:23:07.103300416-04:00","hits":103,"metaAuthorName":"ken test stuff","metaDesc":"a booktest stuff","metaKeyWords":"","metaRobotKeyWords":"","text":"c29tZSBib29rIHRleHQgdGVzdCBzdHVmZg==","TextHTML":"","archived":false,"visible":true,"UseModifiedDate":false,"blogPost":false}
1+
{"name":"books1","title":"the best book ever ever","subject":"","author":"","createDate":"2020-03-23T12:58:49.01992684-04:00","modifiedDate":"2024-05-06T15:41:53.884064921-04:00","hits":105,"metaAuthorName":"ken test stuff","metaDesc":"a booktest stuff","metaKeyWords":"","metaRobotKeyWords":"","text":"c29tZSBib29rIHRleHQgdGVzdCBzdHVmZg==","TextHTML":"","archived":false,"visible":true,"UseModifiedDate":false,"blogPost":false}

‎services/testBackupZips/compress.dat

0 Bytes
Binary file not shown.

‎services/testBackupZips/uncompress.json

+1-1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.