diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 60d0704..53f2575 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -8,10 +8,10 @@ jobs: steps: - uses: actions/checkout@v2 - name: Build the Backend Docker image - run: cd backend;docker build . --file Dockerfile --tag bang-backend:latest + run: cd backend;docker build . --file Dockerfile --tag albertoxamin/bang-backend:latest - uses: actions/checkout@v2 - name: Build the Frontend Docker image - run: cd frontend;docker build . --file Dockerfile --tag bang-frontend:latest + run: cd frontend;docker build . --file Dockerfile --tag albertoxamin/bang-frontend:latest - name: Log into registry run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin - name: Push iamges diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml deleted file mode 100644 index c3dc7dc..0000000 --- a/.github/workflows/docker-publish.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Publish Docker image -on: - release: - types: [published] -jobs: - push_to_registry: - name: Push Docker image to GitHub Packages - runs-on: ubuntu-latest - steps: - - name: Check out the repo - uses: actions/checkout@v2 - - name: Push to GitHub Packages - uses: docker/build-push-action@v1 - with: - context: backend - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - registry: docker.pkg.github.com - repository: albertoxamin/bang/bang-backend - tag_with_ref: true