Skip to content

Commit

Permalink
feat:added release image gha
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowHatpro committed Sep 6, 2024
1 parent 77086cd commit c5980ab
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/release-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release Docker Image

on:
push:
branches:
- main
jobs:
build-and-push-docker-image:
runs-on: ubuntu-latest

env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_REPO: ${{ secrets.DOCKER_REPO }}
IMAGE_NAME: ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPO }}:latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ env.DOCKER_USERNAME }}
password: ${{ env.DOCKER_PASSWORD }}

- name: Build and tag Docker image
run: |
docker build -f ./docker/Dockerfile.dev -t $IMAGE_NAME .
- name: Push Docker image
run: |
docker push $IMAGE_NAME
2 changes: 1 addition & 1 deletion config/development.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ retry_interval = 120 # 2 min
allow_remove_row_after = 600 # 10 min

[sentry]
url = "enter sentry DSN here"
url = "https://[email protected].sentry.io/4507836627222528"

[database]
pg_host = "localhost" # If running as a docker container, change this to musicbrainz-docker-db-1
Expand Down

0 comments on commit c5980ab

Please sign in to comment.