diff --git a/.github/workflows/container-ci.yml b/.github/workflows/container-ci.yml index 38426e7..14f57f3 100644 --- a/.github/workflows/container-ci.yml +++ b/.github/workflows/container-ci.yml @@ -1,7 +1,4 @@ -# dockerimage buildx -# continuous-deployment.yml -# - +# ghcr.io/contractshark/inject-solhint-ci:latest name: container-ci on: ['push'] @@ -54,8 +51,8 @@ jobs: - name: Push to GitHub Packages uses: docker/build-push-action@v2 with: - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + username: ${{ github.repository_owner }} + password: ${{ secrets.CR_PAT }} registry: docker.pkg.github.com - repository: contractshark/inject-solhint-ci/action + repository: contractshark/inject-solhint-ci:latest tag_with_ref: true diff --git a/.github/workflows/dockerimage.yml b/.github/workflows/dockerimage.yml index 2a5644e..8d9dc61 100644 --- a/.github/workflows/dockerimage.yml +++ b/.github/workflows/dockerimage.yml @@ -6,7 +6,7 @@ jobs: buildx: runs-on: ubuntu-latest - steps: + steps: - uses: actions/checkout@v2 name: Checkout @@ -16,4 +16,4 @@ jobs: install: true - name: Docker BuildX run: | - docker build . --file Dockerfile --tag solhint-ci:$(date +%s) \ No newline at end of file + docker build . --file Dockerfile --tag solhint-ci:$(date +%s) diff --git a/Dockerfile b/Dockerfile index 89bce34..10261b6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,8 @@ FROM node:14.15-alpine3.13 +LABEL Description="SolHint CI" Vendor="Contract Shark" Version="1.0" + + ENV REVIEWDOG_VERSION=v0.11.0 RUN wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh| sh -s -- -b /usr/local/bin/ ${REVIEWDOG_VERSION} @@ -9,4 +12,4 @@ RUN apk --update add jq curl git && \ COPY entrypoint.sh /entrypoint.sh -ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file +ENTRYPOINT ["/entrypoint.sh"]