Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
sabexzero committed Apr 21, 2024
1 parent 426ce14 commit 5b2bf1d
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 120 deletions.
33 changes: 0 additions & 33 deletions .dockerignore

This file was deleted.

60 changes: 29 additions & 31 deletions .github/workflows/update-docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,29 @@
name: ci

on:
push:
branches:
- "main"

jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/trade-hub:latest
name: "Run docker image update"

on:
push:
branches:
- 'main'

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: user/app:latest
24 changes: 0 additions & 24 deletions Dockerfile

This file was deleted.

7 changes: 5 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ repositories {
mavenCentral()
}


dependencies {
implementation 'org.springframework:spring-aspects:6.1.5'
implementation 'org.jetbrains:annotations:24.1.0'
Expand All @@ -38,6 +37,10 @@ dependencies {
compileOnly 'org.projectlombok:lombok'
runtimeOnly 'org.postgresql:postgresql'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframe work.boot:spring-boot-starter-test'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
}

tasks.named('test') {
useJUnitPlatform()
}
30 changes: 0 additions & 30 deletions docker-compose.yml

This file was deleted.

13 changes: 13 additions & 0 deletions src/test/java/com/example/TradeHub/TradeHubApplicationTests.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.example.TradeHub;

import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
class TradeHubApplicationTests {

@Test
void contextLoads() {
}

}
Binary file removed trade_hub_dump_v1.0.0.sql
Binary file not shown.

0 comments on commit 5b2bf1d

Please sign in to comment.