Skip to content

Commit

Permalink
Cleanup: run on dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
palinatolmach committed Dec 12, 2024
1 parent d254bea commit a165ff9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/docker-push.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
---
name: 'Push Docker Image'
on:
pull_request:
branches:
- 'master'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand All @@ -23,8 +21,8 @@ jobs:
run: |
KONTROL_VERSION=$(cat package/version)
echo "CONTAINER_NAME=kontrol-ci-docker-${GITHUB_SHA}" >> ${GITHUB_ENV}
# TODO:temp
SANITIZED_BRANCH_NAME=$(echo "${BRANCH_NAME}" | tr '/' '-')
BRANCH_NAME="${{ github.ref_name }}"
SANITIZED_BRANCH_NAME=$(echo "${BRANCH_NAME}" | tr '/' '-' | tr -cd '[:alnum:]-_.')
TAG=runtimeverificationinc/kontrol:ubuntu-jammy-${SANITIZED_BRANCH_NAME}
echo "TAG=${TAG}" >> ${GITHUB_ENV}
echo "DOCKER_USER=user" >> ${GITHUB_ENV}
Expand Down

0 comments on commit a165ff9

Please sign in to comment.