Skip to content

Commit

Permalink
adjust branch names
Browse files Browse the repository at this point in the history
  • Loading branch information
ihardy committed Jan 2, 2025
1 parent c1931c7 commit 14d9cff
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,26 +30,23 @@ jobs:
- run: mvn install

- name: Log in to the Container registry
#if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || contains(github.ref, 'release') }}
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/DEVOPS-5009-ci' || contains(github.ref, 'release') }}
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || contains(github.ref, 'release') }}
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
#if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || contains(github.ref, 'release') }}
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/DEVOPS-5009-ci' || contains(github.ref, 'release') }}
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || contains(github.ref, 'release') }}
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

# master and main
- name: Build and push Docker image
#if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' }}
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/DEVOPS-5009-ci' }}
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' }}
uses: docker/build-push-action@v6
with:
context: .
Expand All @@ -68,8 +65,7 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}

- name: Deploy latest to K8s
#if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' }}
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/DEVOPS-5009-ci' }}
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' }}
uses: actions-hub/[email protected]
env:
KUBE_CONFIG: ${{ secrets.RESHARE_DEV_SA_KUBECONFIG }}
Expand Down

0 comments on commit 14d9cff

Please sign in to comment.