Skip to content

Commit 5bdba63

Browse files
committed
ci: docker: push after test success
1 parent 34e4a21 commit 5bdba63

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/container.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,20 @@
1010
name: Create and publish a Container image
1111

1212
on:
13-
push:
14-
branches:
15-
- "main"
16-
tags:
17-
- "v*"
13+
workflow_run:
14+
workflows: ["Python tests"]
15+
branches: [main]
16+
types:
17+
- completed
18+
1819
env:
1920
REGISTRY: ghcr.io
2021
IMAGE_NAME: ngine-io/scalr
2122

2223
jobs:
2324
build-and-push-image:
2425
runs-on: ubuntu-latest
26+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
2527
permissions:
2628
contents: read
2729
packages: write

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ jobs:
99
max-parallel: 3
1010
matrix:
1111
python-version:
12-
- "3.8"
1312
- "3.10"
13+
- "3.11"
1414

1515
steps:
1616
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)