Skip to content

Commit e64ab7e

Browse files
authored
Merge pull request #4 from UniversalScientificTechnologies/update-docker-workflow
Oprava buildu v rámci CI, aktualizace github actions skriptů, nastavení pravidel pro spuštění CI
2 parents df31583 + f19c1eb commit e64ab7e

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
on:
22
push:
3-
# branches: ['release']
3+
branches:
4+
- master
5+
- release
6+
pull_request:
7+
branches:
8+
- master
9+
- release
410
workflow_dispatch:
511

612
env:
713
REGISTRY: ghcr.io
8-
IMAGE_NAME: roman-dvorak/DOSPORTAL/web
14+
IMAGE_NAME: universalscientifictechnologies/dosportal/web
915

1016
jobs:
1117
build-and-push-image:
@@ -16,23 +22,23 @@ jobs:
1622

1723
steps:
1824
- name: Checkout repository
19-
uses: actions/checkout@v4
25+
uses: actions/checkout@v6
2026
- name: Log in to the Container registry
21-
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
27+
uses: docker/login-action@v3
2228
with:
2329
registry: ${{ env.REGISTRY }}
2430
username: ${{ github.actor }}
2531
password: ${{ secrets.GITHUB_TOKEN }}
2632
- name: Extract metadata (tags, labels) for Docker
2733
id: meta
28-
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
34+
uses: docker/metadata-action@v5
2935
with:
3036
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
3137
- name: Build and push Docker image
32-
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
38+
uses: docker/build-push-action@v6
3339
with:
3440
context: .
3541
file: Dockerfile
36-
push: true
42+
push: ${{ github.event_name != 'pull_request' }}
3743
tags: ${{ steps.meta.outputs.tags }}
3844
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)