Skip to content

Commit

Permalink
Harbor: Dytt kun release, ikke main (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnfinn authored Nov 8, 2024
1 parent e4e3cee commit dc761d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/harbor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Harbor
if: github.event_name != 'pull_request'
if: github.event_name == 'release'
run: |
echo ${{ secrets.HARBOR_PASSWORD }} | docker login --username ${{ secrets.HARBOR_USERNAME }} --password-stdin ${{ secrets.HARBOR_REGISTRY }}
- name: Build image and push to Harbor
Expand All @@ -54,6 +54,6 @@ jobs:
context: .
file: ./Dockerfile
tags: ${{ secrets.HARBOR_REGISTRY }}/${{ steps.docker_meta.outputs.tags }}
push: ${{ github.event_name != 'pull_request' }}
push: ${{ github.event_name == 'release' }}
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit dc761d1

Please sign in to comment.