From ee5a00995d5941dfd9eefd63f8ffe8cd3db38f84 Mon Sep 17 00:00:00 2001 From: Ashlin Darius Govindasamy Date: Wed, 29 Nov 2023 00:51:30 +0200 Subject: [PATCH 1/2] Create docker-image.yml --- .github/workflows/docker-image.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..4866605 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,30 @@ +name: Docker Image CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Check Out Repo + uses: actions/checkout@v2 + + - name: Log in to GitHub Packages + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push Docker image + uses: docker/build-push-action@v2 + with: + context: . + file: ./Dockerfile + push: true + tags: ghcr.io/${{ github.repository }}/animeapi:latest From 8afc5dc2bbf64f528b76d37cb1db232e359c371e Mon Sep 17 00:00:00 2001 From: Ashlin Darius Govindasamy Date: Wed, 29 Nov 2023 00:56:51 +0200 Subject: [PATCH 2/2] Update docker-image.yml --- .github/workflows/docker-image.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 4866605..e61fdd5 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -27,4 +27,4 @@ jobs: context: . file: ./Dockerfile push: true - tags: ghcr.io/${{ github.repository }}/animeapi:latest + tags: ghcr.io/adgstudios/animeapi:latest