diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 0000000..c7c0576 --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,23 @@ +name: build and publish dockerfile +on: + push: + branches: ["main", "ci/docker"] + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Login to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: "JonMike8" + password: ${{ secrets.ACCESS_TOKEN }} + + - name: Build and Push Docker Image + uses: docker/build-push-action@v4 + with: + push: true + tags: | + ghcr.io/stevensblueprint/nycmesh-node-visualizer:${{ github.sha }} + ghcr.io/stevensblueprint/nycmesh-node-visualizer:latest \ No newline at end of file