diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..253eb7f --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,14 @@ +name: Publish Docker +on: [push] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Publish to Registry + uses: elgohr/Publish-Docker-Github-Action@v5 + with: + name: byndyusoft/nexus3 + tag_names: true + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} diff --git a/Dockerfile b/Dockerfile index 975d78c..1cd6510 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM sonatype/nexus3:3.68.1 +FROM sonatype/nexus3:3.78.1 USER root @@ -11,6 +11,6 @@ RUN mkdir -p /opt/nexus-casc/ ENV NEXUS_CASC_CONFIG=/opt/nexus-casc/nexus-casc-config.yml COPY ./default-nexus.yml /opt/nexus-casc/nexus-casc-config.yml -COPY ./nexus-casc-plugin-3.64.0-04-bundle.kar /opt/sonatype/nexus/deploy/ +COPY ./nexus-casc-plugin-3.70.1-02-bundle.kar /opt/sonatype/nexus/deploy/ USER nexus \ No newline at end of file diff --git a/README.md b/README.md index 3d344f8..a4b93b4 100644 --- a/README.md +++ b/README.md @@ -7,19 +7,19 @@ Installed nexus plugin(nexus-casc-plugin) and net-tools package https://hub.docker.com/r/sonatype/nexus3/ #### Added nexus plugin -https://github.com/AdaptiveConsulting/nexus-casc-plugin +https://github.com/sonatype-nexus-community/nexus-casc-plugin #### Docker login - `docker login` #### Build image -- `docker build -t byndyusoft/nexus3:3.68.1 .` +- `docker build -t byndyusoft/nexus3:3.78.1 .` #### Run image -- `docker run --rm byndyusoft/nexus3:3.68.1` +- `docker run --rm byndyusoft/nexus3:3.78.1` #### Push image -- `docker push byndyusoft/nexus3:3.68.1` +- `docker push byndyusoft/nexus3:3.78.1` #### Docker logout - `docker logout` diff --git a/nexus-casc-plugin-3.64.0-04-bundle.kar b/nexus-casc-plugin-3.64.0-04-bundle.kar deleted file mode 100644 index 8cfcd38..0000000 Binary files a/nexus-casc-plugin-3.64.0-04-bundle.kar and /dev/null differ diff --git a/nexus-casc-plugin-3.70.1-02-bundle.kar b/nexus-casc-plugin-3.70.1-02-bundle.kar new file mode 100644 index 0000000..72b7c24 Binary files /dev/null and b/nexus-casc-plugin-3.70.1-02-bundle.kar differ