Skip to content

Commit

Permalink
Update APP NAME and using CONTAINERIZED_APP_NAME for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
sanG-github committed Apr 9, 2024
1 parent a79d14b commit 677552a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_generated_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: push

env:
COMPOSE_FILE: docker-compose.test.yml
APP_NAME: rails-template
APP_NAME: rails-templates
DOCKER_IMAGE: ${{ github.repository }}
DOCKER_REGISTRY_HOST: ${{ secrets.DOCKER_REGISTRY_HOST }}
DOCKER_REGISTRY_USERNAME: ${{ github.repository_owner }}
Expand Down
2 changes: 1 addition & 1 deletion .template/spec/support/serverspec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module ServerSpecHelpers
# Prebuild and run docker image before running the test
# Because the docker api does not support docker compose
def self.test_container
container_name = "#{ENV.fetch('APP_NAME')}-test"
container_name = "#{ENV.fetch('CONTAINERIZED_APP_NAME')}-test"
container_id = `docker ps -qf "name=#{container_name}"`

Docker::Container.get(container_id.strip)
Expand Down

0 comments on commit 677552a

Please sign in to comment.