From 5b14f9f174181c22d613374a92783db62968690f Mon Sep 17 00:00:00 2001 From: Andrew Welch Date: Wed, 27 Nov 2024 20:07:10 -0500 Subject: [PATCH] feat: Add `CODEOWNERS` and build docker images GH action --- .github/CODEOWNERS | 1 + .github/workflows/build-docker-images.yml | 34 +++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 .github/CODEOWNERS create mode 100644 .github/workflows/build-docker-images.yml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 000000000..8363dac96 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @delaneyj @bencroker diff --git a/.github/workflows/build-docker-images.yml b/.github/workflows/build-docker-images.yml new file mode 100644 index 000000000..2b12c02bf --- /dev/null +++ b/.github/workflows/build-docker-images.yml @@ -0,0 +1,34 @@ +name: Build Docker Images + +on: + push: + branches: develop + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout the repository + uses: actions/checkout@v3 + - name: Login to GitHub Container Registry + uses: docker/login-action@v4 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build and Push Docker Image + env: + REGISTRY: ghcr.io + OWNER: starfederation + IMAGE_NAME: ${{ github.repository }}-dev + uses: docker/build-push-action@v4 + with: + context: ./.github + file: ./Dockerfile-dev + target: final + push: true + tags: | + $REGISTRY/$OWNER/$IMAGE_NAME:$(date +%s) + build-args: | + ENVIRONMENT=development