Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pjaudiomv committed Jun 14, 2024
1 parent bb6beae commit a318a93
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: main
on:
push:
branches: ['main']
branches: ['svelte-wip']
tags: ['*']

env:
Expand Down Expand Up @@ -149,7 +149,7 @@ jobs:
aws s3 cp build/bmlt-root-server.zip s3://${{ secrets.S3_BUCKET }}/bmlt-root-server/bmlt-root-server-$(cat src/config/app.php | grep "'version'" | cut -d"'" -f6)-build${GITHUB_RUN_NUMBER}-${GITHUB_SHA}.zip
- name: Configure AWS Credentials 🪪
if: contains(github.ref_name, 'main') || contains(github.ref_name, 'unstable')
if: contains(github.ref_name, 'main') || contains(github.ref_name, 'svelte-wip')
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/github-actions/gh-ci-tf-bmlt-rs
Expand All @@ -163,12 +163,12 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}

- name: make docker 🐳
if: contains(github.ref_name, 'main') || contains(github.ref_name, 'unstable')
if: contains(github.ref_name, 'main') || contains(github.ref_name, 'svelte-wip')
run: |
make docker
- name: make docker-push 🐋
if: contains(github.ref_name, 'main') || contains(github.ref_name, 'unstable')
if: contains(github.ref_name, 'main') || contains(github.ref_name, 'svelte-wip')
id: docker_push_images
run: |
make docker-push
Expand Down Expand Up @@ -197,7 +197,7 @@ jobs:
permissions:
id-token: write
contents: write
if: contains(github.ref_name, 'main')
if: contains(github.ref_name, 'main') || contains(github.ref_name, 'svelte-wip')
strategy:
fail-fast: false
matrix:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ else
ifeq ($(strip $(GITHUB_REF_NAME)),main)
TAG := latest
endif
ifeq ($(strip $(GITHUB_REF_NAME)),unstable)
ifeq ($(strip $(GITHUB_REF_NAME)),svelte-wip)
TAG := unstable
endif
COMPOSER_ARGS := --classmap-authoritative
Expand Down
8 changes: 4 additions & 4 deletions terraform/ecs-service-bmlt-unstable.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ resource "aws_ecs_task_definition" "bmlt_unstable" {
]
links = ["bmlt-db"]
workingDirectory = "/tmp"
image = "bmltenabled/bmlt-root-server:latest"
image = "bmltenabled/bmlt-root-server:unstable"
repositoryCredentials = {
credentialsParameter = data.aws_secretsmanager_secret.docker.arn
}
Expand Down Expand Up @@ -130,7 +130,7 @@ resource "aws_ecs_service" "bmlt_unstable" {
container_port = 8000
}

lifecycle {
ignore_changes = [task_definition]
}
# lifecycle {
# ignore_changes = [task_definition]
# }
}

0 comments on commit a318a93

Please sign in to comment.