From ff714c1180a5d6490aa8bd963b19abfc758f3ab7 Mon Sep 17 00:00:00 2001 From: James Walker Date: Wed, 26 Jun 2024 16:26:17 -0400 Subject: [PATCH] feat: push RP docker image to registry --- .github/workflows/release_docker.yml | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/release_docker.yml diff --git a/.github/workflows/release_docker.yml b/.github/workflows/release_docker.yml new file mode 100644 index 00000000..08868c99 --- /dev/null +++ b/.github/workflows/release_docker.yml @@ -0,0 +1,36 @@ +name: Publish Docker Image + +on: + push: + # TODO: uncomment this before merge! + # branches: + # - "main" + # tags: + # - "v*" + +jobs: + docker: + name: Push Docker image + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Login to the Github Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Docker Metadata + id: meta + uses: docker/metadata-action@v5 + with: + images: ghcr.io/Lilypad-Tech/resource-provider + - name: Build and push Docker image + uses: docker/build-push-action@v6 + with: + context: . + file: ./docker/resource-provider/Dockerfile + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }}