From deb9c8b6e9a1fb9a0ed3414107a4ebc9444b7d71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Cser=C3=A9p?= Date: Mon, 24 Jan 2022 00:58:57 +0100 Subject: [PATCH] Do not add branch name to local docker image tags in GitHub Actions. --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 00f6c015c..c0d0395e5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -424,11 +424,11 @@ jobs: if: ${{ github.ref_name == 'master' || startsWith(github.ref_name, 'release') == true }} run: | export BRANCH=${{ steps.branch_substring.outputs.substring }} - docker build -t codecompass$BRANCH:dev -t modelcpp/codecompass$BRANCH:dev --file docker/dev/Dockerfile . - docker build -t codecompass$BRANCH:runtime -t modelcpp/codecompass$BRANCH:runtime-sqlite --file docker/runtime/Dockerfile --no-cache --build-arg CC_DATABASE=sqlite . - docker build -t codecompass$BRANCH:web -t modelcpp/codecompass$BRANCH:web-sqlite --file docker/web/Dockerfile --no-cache . - docker build -t codecompass$BRANCH:runtime -t modelcpp/codecompass$BRANCH:runtime-pgsql --file docker/runtime/Dockerfile --no-cache --build-arg CC_DATABASE=pgsql . - docker build -t codecompass$BRANCH:web -t modelcpp/codecompass$BRANCH:web-pgsql --file docker/web/Dockerfile --no-cache . + docker build -t codecompass:dev -t modelcpp/codecompass$BRANCH:dev --file docker/dev/Dockerfile . + docker build -t codecompass:runtime -t modelcpp/codecompass$BRANCH:runtime-sqlite --file docker/runtime/Dockerfile --no-cache --build-arg CC_DATABASE=sqlite . + docker build -t codecompass:web -t modelcpp/codecompass$BRANCH:web-sqlite --file docker/web/Dockerfile --no-cache . + docker build -t codecompass:runtime -t modelcpp/codecompass$BRANCH:runtime-pgsql --file docker/runtime/Dockerfile --no-cache --build-arg CC_DATABASE=pgsql . + docker build -t codecompass:web -t modelcpp/codecompass$BRANCH:web-pgsql --file docker/web/Dockerfile --no-cache . docker tag modelcpp/codecompass$BRANCH:runtime-pgsql modelcpp/codecompass$BRANCH:latest - name: Login to DockerHub