Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyShorokhov committed Apr 7, 2024
1 parent fb7d0b4 commit f524987
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,15 @@ jobs:
{ slug: dmc, tagName: legacy },
]
env:
needToPush: ${{ github.ref == 'refs/heads/master' }}
needToPush: ${{ github.ref_name == github.event.repository.default_branch }}

steps:
- name: test env
run: echo "github.ref_name:${{github.ref_name}}, github.event.repository.default_branch:${{github.event.repository.default_branch}}"

- uses: actions/[email protected]
- uses: docker/[email protected]

- name: Log in to Docker Hub
if: ${{ env.needToPush }}
uses: docker/[email protected]
Expand All @@ -56,7 +59,7 @@ jobs:
context: .
file: ./Dockerfile
platforms: linux/amd64
push: false
push: ${{ env.needToPush }}
tags: |
${{ vars.DOCKER_USERNAME }}/rehlds-${{ matrix.mod.slug }}:${{ matrix.mod.tagName }}
${{ matrix.mod.tagName == 'legacy' && format('{0}/rehlds-{1}:latest', vars.DOCKER_USERNAME, matrix.mod.slug) || null}}
Expand Down

0 comments on commit f524987

Please sign in to comment.