Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish package to the Maven Central Repository
name: Publish package to the Maven Central Repository and Docker Hub
on:
release:
types: [created]
Expand All @@ -21,3 +21,22 @@ jobs:
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build SQLancer
run: mvn -B package -DskipTests=true
- name: Push to Docker Hub
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: mrigger/sqlancer
tag_with_ref: true
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM ubuntu:21.04

RUN apt-get update --yes && env DEBIAN_FRONTEND=noninteractive apt-get install openjdk-15-jdk maven --yes --no-install-recommends

# assumes that the project has already been built
COPY target/sqlancer-*.jar sqlancer.jar
COPY target/lib/*.jar /lib/

ENTRYPOINT ["java", "-jar", "sqlancer.jar"]
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.sqlancer</groupId>
<artifactId>sqlancer</artifactId>
<version>1.0.1</version>
<version>1.1.0</version>
<name>SQLancer</name>
<url>http://www.sqlancer.com/</url>
<description>SQLancer finds logic bugs in Database Management Systems through automatic testing</description>
Expand Down
1 change: 1 addition & 0 deletions src/sqlancer/postgres/gen/PostgresTableGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ private void generateInherits() {
errors.add("cannot inherit from partitioned table");
errors.add("has a collation conflict");
errors.add("inherits conflicting default values");
errors.add("specifies generation expression");
}
}

Expand Down