Skip to content

Commit

Permalink
Update actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrelefevre committed May 9, 2024
1 parent 291c994 commit e2b6254
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/docker-aggregator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,23 @@ on:
push:
branches:
- "main"
paths:
- "aggregator/**"
- ".github/workflows/docker-aggregator.yml"
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: registry.cloud.cbh.kth.se
username: ${{ secrets.DOCKER_USERNAME_AGGREGATOR }}
password: ${{ secrets.DOCKER_PASSWORD_AGGREGATOR }}

- name: Build and push
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: ./aggregator
file: ./aggregator/Dockerfile
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/docker-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,23 @@ on:
push:
branches:
- "main"
paths:
- "frontend/**"
- ".github/workflows/docker-frontend.yml"
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: registry.cloud.cbh.kth.se
username: ${{ secrets.DOCKER_USERNAME_FRONTEND }}
password: ${{ secrets.DOCKER_PASSWORD_FRONTEND }}

- name: Build and push
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: ./frontend
file: ./frontend/Dockerfile
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/hub-aggregator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
push:
branches:
- "main"
paths:
- "aggregator/**"
- ".github/workflows/hub-aggregator.yml"
workflow_dispatch:
jobs:
docker:
Expand All @@ -19,7 +22,6 @@ jobs:
with:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_SECRET }}

- name: Build and push
uses: docker/build-push-action@v5
with:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/hub-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
push:
branches:
- "main"
paths:
- "frontend/**"
- ".github/workflows/hub-frontend.yml"
workflow_dispatch:
jobs:
docker:
Expand All @@ -19,7 +22,6 @@ jobs:
with:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_SECRET }}

- name: Build and push
uses: docker/build-push-action@v5
with:
Expand All @@ -28,4 +30,3 @@ jobs:
push: true
tags: pierrelf/at_se:frontend
platforms: linux/amd64,linux/arm64

0 comments on commit e2b6254

Please sign in to comment.