aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrumeet <17158086+Trumeet@users.noreply.github.com>2021-01-08 21:11:59 -0800
committerYuutaW <17158086+Trumeet@users.noreply.github.com>2021-01-08 21:26:33 -0800
commit8e7ed866738ebe1a5b0d73031349f7f2260f92e3 (patch)
tree37690979d6cd996dc65c2f12cece5dfdc752d1a2
parent76f32318d8ff3619cb55d543e32814f61b01ab2e (diff)
downloaddn42peering-8e7ed866738ebe1a5b0d73031349f7f2260f92e3.tar
dn42peering-8e7ed866738ebe1a5b0d73031349f7f2260f92e3.tar.gz
dn42peering-8e7ed866738ebe1a5b0d73031349f7f2260f92e3.tar.bz2
dn42peering-8e7ed866738ebe1a5b0d73031349f7f2260f92e3.zip
ci: stop using Docker for now
-rw-r--r--.github/workflows/check.yml10
-rw-r--r--.github/workflows/publish.yml28
-rw-r--r--Dockerfile13
3 files changed, 15 insertions, 36 deletions
diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml
index bfadd90..4d2364f 100644
--- a/.github/workflows/check.yml
+++ b/.github/workflows/check.yml
@@ -13,10 +13,12 @@ jobs:
steps:
- uses: actions/checkout@v2
- - name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v1
- - name: Build the central Docker image
- uses: docker/build-push-action@v2.2.1
+ - name: Set up JDK 1.8
+ uses: actions/setup-java@v1
+ with:
+ java-version: 1.8
+ - name: Build
+ run: ./gradlew :central:distTar
build_agent:
runs-on: ubuntu-latest
steps:
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 903b9de..142207f 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -11,27 +11,17 @@ jobs:
steps:
- uses: actions/checkout@v2
- - name: Generate tag
- run: echo "CUSTOM_DOCKER_TAG=${GITHUB_REF##*/}" >> $GITHUB_ENV
- - name: Convert repo name to lower case
- run: |
- IMG=$(echo $DOCKER_IMAGE_ORIG | awk '{print tolower($0)}')
- echo "CUSTOM_DOCKER_IMAGE=${IMG}" >> $GITHUB_ENV
- env:
- DOCKER_IMAGE_ORIG: ${{ github.repository }}
- - name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v1
- - name: Login to GitHub Container Registry
- uses: docker/login-action@v1
+ - name: Set up JDK 1.8
+ uses: actions/setup-java@v1
with:
- registry: ghcr.io
- username: ${{ github.repository_owner }}
- password: ${{ secrets.CR_PAT }}
- - name: Build and push central Docker image
- uses: docker/build-push-action@v2.2.1
+ java-version: 1.8
+ - name: Build
+ run: ./gradlew :central:distTar
+ - uses: ncipollo/release-action@v1.7.3
with:
- tags: ghcr.io/${{ env.CUSTOM_DOCKER_IMAGE }}:${{ env.CUSTOM_DOCKER_TAG }}
- push: true
+ allowUpdates: true
+ artifacts: "./central/build/distributions/central-*.tar"
+ token: ${{ secrets.GITHUB_TOKEN }}
build_agent:
runs-on: ubuntu-latest
steps:
diff --git a/Dockerfile b/Dockerfile
deleted file mode 100644
index 19620bc..0000000
--- a/Dockerfile
+++ /dev/null
@@ -1,13 +0,0 @@
-# Docker image for central
-FROM docker.io/openjdk:8-jdk AS builder
-
-ADD . /root/
-WORKDIR /root/
-RUN ./gradlew :central:installDist
-
-FROM docker.io/openjdk:8-jre-alpine AS runtime
-
-WORKDIR /
-COPY --from=0 /root/central/build/install/ ./usr/
-
-ENTRYPOINT [ '/usr/bin/central' ]