diff --git a/.github/workflow.yml b/.github/workflow.yml deleted file mode 100644 index 7e0d6a7..0000000 --- a/.github/workflow.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Publish Docker image -on: - release: - types: [published] -jobs: - 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: Push to Docker Hub - uses: docker/build-push-action@v1 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_TOKEN }} - repository: bdevloed/eye - tag_with_ref: true diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml new file mode 100644 index 0000000..b0468dc --- /dev/null +++ b/.github/workflows/workflow.yml @@ -0,0 +1,31 @@ +name: ci + +on: + push + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - + name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - + name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_TOKEN }} + - + name: Build and push + id: docker_build + uses: docker/build-push-action@v2 + with: + push: true + tags: bdevloed/eye:latest + - + name: Image digest + run: echo ${{ steps.docker_build.outputs.digest }} diff --git a/Dockerfile b/Dockerfile index 0ea4c7f..39eef43 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,8 +45,8 @@ RUN chmod +x /usr/local/bin/cturtle && \ mkdir eye && \ cd eye && \ curl -fsS -L -O "https://raw.githubusercontent.com/josd/eye/master/eye.zip" && \ - unzip eye && ./eye/install.sh && \ - cd / && \ - rm -rf eye - + unzip eye && \ + curl -o ./eye/eye.sh.in https://raw.githubusercontent.com/josd/eye/master/eye.sh.in && \ + ./eye/install.sh + ENTRYPOINT ["/ep"]