From c3d9adf17768a3849b6d68fe25e33cef58ea2846 Mon Sep 17 00:00:00 2001 From: aurelf Date: Mon, 22 Apr 2024 03:06:46 +0200 Subject: [PATCH] Fix conditions to push docker image (#170) 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: -