Skip to content

Commit d3bc047

Browse files
authored
Merge pull request #298 from sqlancer/docker-hub
Publish releases also at Docker Hub
2 parents 548aa39 + 72f6a39 commit d3bc047

4 files changed

Lines changed: 31 additions & 2 deletions

File tree

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish package to the Maven Central Repository
1+
name: Publish package to the Maven Central Repository and Docker Hub
22
on:
33
release:
44
types: [created]
@@ -21,3 +21,22 @@ jobs:
2121
env:
2222
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
2323
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
24+
push_to_registry:
25+
name: Push Docker image to Docker Hub
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Check out the repo
29+
uses: actions/checkout@v2
30+
- name: Set up JDK 1.8
31+
uses: actions/setup-java@v1
32+
with:
33+
java-version: 1.8
34+
- name: Build SQLancer
35+
run: mvn -B package -DskipTests=true
36+
- name: Push to Docker Hub
37+
uses: docker/build-push-action@v1
38+
with:
39+
username: ${{ secrets.DOCKER_USERNAME }}
40+
password: ${{ secrets.DOCKER_PASSWORD }}
41+
repository: mrigger/sqlancer
42+
tag_with_ref: true

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM ubuntu:21.04
2+
3+
RUN apt-get update --yes && env DEBIAN_FRONTEND=noninteractive apt-get install openjdk-15-jdk maven --yes --no-install-recommends
4+
5+
# assumes that the project has already been built
6+
COPY target/sqlancer-*.jar sqlancer.jar
7+
COPY target/lib/*.jar /lib/
8+
9+
ENTRYPOINT ["java", "-jar", "sqlancer.jar"]

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>com.sqlancer</groupId>
66
<artifactId>sqlancer</artifactId>
7-
<version>1.0.1</version>
7+
<version>1.1.0</version>
88
<name>SQLancer</name>
99
<url>http://www.sqlancer.com/</url>
1010
<description>SQLancer finds logic bugs in Database Management Systems through automatic testing</description>

src/sqlancer/postgres/gen/PostgresTableGenerator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ private void generateInherits() {
198198
errors.add("cannot inherit from partitioned table");
199199
errors.add("has a collation conflict");
200200
errors.add("inherits conflicting default values");
201+
errors.add("specifies generation expression");
201202
}
202203
}
203204

0 commit comments

Comments
 (0)