Skip to content

Commit

Permalink
Merge pull request #6 from ubitransports/chore/tag-creation
Browse files Browse the repository at this point in the history
Chore/tag creation
  • Loading branch information
sholo-matawan authored Mar 19, 2024
2 parents d952af3 + bd06743 commit 919966b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ composer-install: start ## Run composer install
composer-update: start ## Run composer update
$(DOCKER_EXEC) composer update $(args)

composer-require: start ## Run composer update
$(DOCKER_EXEC) composer require $(args)

test: start ## Execute phpunit tests
$(DOCKER_EXEC) vendor/bin/phpunit --configuration phpunit.xml

Expand All @@ -43,7 +46,7 @@ phpstan: start ## Run PHPStan analysis
$(PHPSTAN) analyse $(PHPSTAN_LEVEL)

phpcs:
$(PHPCS) vendor/bin/phpcs \
$(PHPCS) \
-p \
--warning-severity=0 \
--ignore=vendor/,var/ \
Expand Down
19 changes: 19 additions & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
options:
pool:
name: projects/${PROJECT_ID}/locations/europe-west1/workerPools/pool-01

steps:
- name: alpine/k8s:1.29.0
entrypoint: bash
args:
- "-c"
- |-
git clone https://ubi-robot:$$GITHUB_ACCESS_TOKEN@github.com/ubitransports/devops-wiki.git /tmp/devops-wiki
sh /tmp/devops-wiki/scripts/tag-creation/run.sh
secretEnv:
- "GITHUB_ACCESS_TOKEN"

availableSecrets:
secretManager:
- versionName: projects/${PROJECT_ID}/secrets/github-access-token/versions/latest
env: GITHUB_ACCESS_TOKEN
2 changes: 1 addition & 1 deletion docker/php/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.1-fpm-alpine
FROM php:8.2-fpm-alpine

COPY --from=composer:2 /usr/bin/composer /usr/local/bin/composer

Expand Down

0 comments on commit 919966b

Please sign in to comment.