Skip to content

Commit

Permalink
Fix conditions to push docker image
Browse files Browse the repository at this point in the history
We don't run the tests on master (as they have been run before merge). Just create the docker image and push it.
  • Loading branch information
aurelf authored Apr 22, 2024
1 parent beac006 commit 0c6c1c0
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/create_push_docker_image.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
name: Publish SymCC Docker image
# for testing only
#on: [pull_request, workflow_dispatch]
#
# we want to push a docker image when the Compile and test SymCC
# workflow completed successfully
on:
workflow_run:
workflows: [Compile and test SymCC]
branches: master
types:
- completed
push:
branches: ['master']

jobs:
upload_dockerhub:
if: ${{ (github.repository == 'eurecom-s3/symcc') && (github.ref == 'refs/heads/master') && (github.event.workflow_run.conclusion == 'success') }}
if: ${{ (github.repository == 'eurecom-s3/symcc') && (github.ref == 'refs/heads/master') }}
runs-on: ubuntu-latest
steps:
-
Expand Down

0 comments on commit 0c6c1c0

Please sign in to comment.