From 0c6c1c02cf7f8dd1a7c7a12c9cbb30ff7e788b29 Mon Sep 17 00:00:00 2001 From: aurelf Date: Mon, 22 Apr 2024 02:57:02 +0200 Subject: [PATCH] Fix conditions to push docker image We don't run the tests on master (as they have been run before merge). Just create the docker image and push it. --- .github/workflows/create_push_docker_image.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/create_push_docker_image.yml b/.github/workflows/create_push_docker_image.yml index 658ef8b..3b59046 100644 --- a/.github/workflows/create_push_docker_image.yml +++ b/.github/workflows/create_push_docker_image.yml @@ -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: -