From c7c0618bb64715c008cdf23eab36d2a12f9a5366 Mon Sep 17 00:00:00 2001 From: jli198 Date: Thu, 28 Mar 2024 18:22:03 -0400 Subject: [PATCH] add github secret --- .github/workflows/docker.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/docker.yml 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