Merge remote-tracking branch 'origin/main'
Some checks are pending
Increase Version / build-and-run (push) Waiting to run
Increase Version / bump-version (push) Successful in 12s

# Conflicts:
#	src/app/services/appointment.service.ts
#	src/app/services/customer.service.ts
This commit is contained in:
2025-03-12 23:45:09 +01:00
7 changed files with 51 additions and 21 deletions

View File

@@ -1,12 +1,9 @@
name: Docker Image CI name: Docker Image CI
on: on:
push: workflow_call:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs: jobs:
build-and-push: build-and-push:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -76,14 +73,14 @@ jobs:
echo "Gekozen versie: $VERSION" echo "Gekozen versie: $VERSION"
# Stop en verwijder de huidige container # Stop en verwijder de huidige container
sudo docker stop paypoint || true docker stop paypoint || true
sudo docker rm paypoint || true docker rm paypoint || true
# Haal de nieuwste image binnen # Haal de nieuwste image binnen
sudo docker pull veenm/paypoint:$VERSION docker pull veenm/paypoint:$VERSION
# Start een nieuwe container # Start een nieuwe container
sudo docker run -d --name paypoint --restart unless-stopped -p 80:15001 veenm/paypoint:$VERSION docker run -d --name paypoint --restart unless-stopped -p 15001:80 veenm/paypoint:$VERSION
# Opruimen oude images # Opruimen oude images
sudo docker image prune -f docker image prune -f

35
.github/workflows/increase-version.yml vendored Normal file
View File

@@ -0,0 +1,35 @@
name: Increase Version
on:
push:
branches:
- main # Start bij commits op de main branch
jobs:
bump-version:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git
run: |
git config --global user.name "Gitea Actions"
git config --global user.email "actions@gitea.local"
- name: Bump version
run: |
npm version patch --no-git-tag-version
git add package.json package-lock.json
git commit -m "chore: bump version [skip ci]" || echo "No changes to commit"
# Pull the latest changes from the remote main branch before pushing
git pull origin main --rebase
# Push changes to remote main branch
git push origin main
build-and-run:
uses: ./.github/workflows/deploy-docker.yml@main

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "pay-point", "name": "pay-point",
"version": "0.0.0", "version": "0.0.15",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "pay-point", "name": "pay-point",
"version": "0.0.0", "version": "0.0.15",
"dependencies": { "dependencies": {
"@angular/animations": "^19.0.0", "@angular/animations": "^19.0.0",
"@angular/cdk": "^19.0.0", "@angular/cdk": "^19.0.0",

View File

@@ -1,6 +1,6 @@
{ {
"name": "pay-point", "name": "pay-point",
"version": "0.0.0", "version": "0.0.15",
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
"start": "ng serve", "start": "ng serve",

View File

@@ -6,9 +6,8 @@ import {Appointment} from '../models/appointment';
providedIn: 'root', providedIn: 'root',
}) })
export class AppointmentService { export class AppointmentService {
baseApi = "http://localhost:8080/api/appointments"; // baseApi = "http://localhost:8080/api/appointments";
baseApi = "https://api.melvanveen.nl/api/appointments";
// baseApi = "https://api.melvanveen.nl/api/appointments";
constructor(private http: HttpClient) { constructor(private http: HttpClient) {
} }

View File

@@ -8,8 +8,8 @@ import {jwtDecode} from 'jwt-decode';
providedIn: 'root', providedIn: 'root',
}) })
export class AuthService { export class AuthService {
private baseApi = 'http://localhost:8080/api/auth/login'; // private baseApi = 'http://localhost:8080/api/auth/login';
// baseApi = "https://api.melvanveen.nl/api/auth/login"; baseApi = "https://api.melvanveen.nl/api/auth/login";
jwtHelper = new JwtHelperService(); jwtHelper = new JwtHelperService();
constructor(private http: HttpClient) { constructor(private http: HttpClient) {

View File

@@ -7,9 +7,8 @@ import {Observable} from 'rxjs';
providedIn: 'root', providedIn: 'root',
}) })
export class CustomerService { export class CustomerService {
baseApi = "http://localhost:8080/api/customers"; // baseApi = "http://localhost:8080/api/customers";
baseApi = "https://api.melvanveen.nl/api/customers";
// baseApi = "https://api.melvanveen.nl/api/customers";
constructor(private http: HttpClient) { constructor(private http: HttpClient) {