diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 3fa83e2..cff9fa9 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -77,9 +77,13 @@ jobs: uses: docker/build-push-action@v3 with: context: ./frontend + build-args: | + COMMIT_HASH=${{ env.hash }} file: ./frontend/Dockerfile push: true - tags: ${{ secrets.DOCKER_USERNAME }}/pastebook-frontend:latest + tags: | + ${{ secrets.DOCKER_USERNAME }}/pastebook-frontend:latest + ${{ secrets.DOCKER_USERNAME }}/pastebook-frontend:${{ env.hash }} - name: Build and push backend Docker image to Docker Hub uses: docker/build-push-action@v3 @@ -87,4 +91,6 @@ jobs: context: ./backend file: ./backend/Dockerfile push: true - tags: ${{ secrets.DOCKER_USERNAME }}/pastebook-backend:latest + tags: | + ${{ secrets.DOCKER_USERNAME }}/pastebook-backend:latest + ${{ secrets.DOCKER_USERNAME }}/pastebook-backend:${{ env.hash }} diff --git a/README.md b/README.md index 188717e..06a62ef 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Start by creating a file named `docker-compose.yml`. Add the content below. ```yml services: backend: - image: ghcr.io/loudbook/pastebook-backend:latest + image: ghcr.io/loudbooks/pastebook-backend:latest ports: - "8080:8080" environment: @@ -29,12 +29,12 @@ services: - pastebook-network frontend: - image: ghcr.io/loudbook/pastebook-frontend:latest + image: ghcr.io/loudbooks/pastebook-frontend:latest ports: - "3000:3000" environment: - - TITLE=PasteBook - - DESCRIPTION=PasteBook is an aesthetic, effortless way to share your blocks of text, and respects your privacy by automatically deleting your pastes. + - TITLE= + - DESCRIPTION= depends_on: - backend networks: @@ -62,7 +62,10 @@ networks: driver: bridge ``` ### Configuration -All of the following values must be changed. +> [!CAUTION] +> Do not change any prefilled configurations other than ones listen below. You will break things. + +**Required configurations:**
`S3_ACCESS_KEY_ID` - The access key associated with your R2 bucket, S3 bucket, etc. @@ -71,6 +74,12 @@ All of the following values must be changed. `S3_ENDPOINT` - The endpoint associated with your R2 bucket, S3 bucket, etc. +**Optional configurations:** +
+`TITLE` - The title to be used around PasteBook. + +`DESCRIPTION` - The description to be used in embeds and on the home page of PasteBook. + ### Creation Run the following. ```