diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..5aecf9a --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,35 @@ +name: Build and Push Docker Image + +on: + push: + +permissions: + contents: read + packages: write + +env: + IMAGE_NAME: ghcr.io/canton-artifacts-dev/temp/hello + +jobs: + docker: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Log in to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: infra-da + password: ${{ secrets.DA_INFRA_PAC }} + + - name: Build and push image + uses: docker/build-push-action@v6 + with: + context: . + push: true + tags: | + ${{ env.IMAGE_NAME }}:latest + ${{ env.IMAGE_NAME }}:${{ github.sha }} diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7d38ffc --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM nginx:alpine + +COPY index.html /usr/share/nginx/html/index.html + +EXPOSE 80 diff --git a/README.md b/README.md index ab3889e..519f285 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # dpm DPM repository + diff --git a/index.html b/index.html new file mode 100644 index 0000000..e1d678d --- /dev/null +++ b/index.html @@ -0,0 +1,9 @@ + + + + Hello Canton Artifacts + + +

Hello Canton Artifacts!!

+ +