From daf0832246044c7c2348ffd181d982d28ba1291d Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Mon, 9 Aug 2021 13:22:33 -0400 Subject: [PATCH] Add test deployment script --- .github/workflows/deploy.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..aefe587 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,31 @@ +name: deploy-dotfiles + +on: + push: + branches: [main] + + pull_request: + branches: [main] + +jobs: + deploy: + runs-on: alpine-latest + steps: + name: Checkout + uses: actions/checkout@v1 + + name: Login to Github Container Registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.REGISTRY_TOKEN }} + + name: Build and Push Docker Image + uses: docker/build-push-action@v2 + with: + push: true + tags: | + ghcr.io/${{ github.repository }}:${{ github.ref }} + ghcr.io/${{ github.repository }}:latest + \ No newline at end of file