Skip to content

Commit

Permalink
DROP: Allow building container image on merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
robertvolkmann committed Sep 6, 2024
1 parent 4baa11c commit 1263958
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
---
name: Docker Build Action
on:
pull_request:
branches:
- master
release:
types:
- published
push:
branches:
- master

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -44,15 +36,9 @@ jobs:
with:
args: --build-tags integration -p bugs -p unused --timeout=5m

- name: Make tag
run: |
[ "${GITHUB_EVENT_NAME}" == 'pull_request' ] && echo "tag=${GITHUB_HEAD_REF##*/}" >> $GITHUB_ENV || true
[ "${GITHUB_EVENT_NAME}" == 'release' ] && echo "tag=${GITHUB_REF##*/}" >> $GITHUB_ENV || true
[ "${GITHUB_EVENT_NAME}" == 'push' ] && echo "tag=latest" >> $GITHUB_ENV || true
- name: Build and push image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.tag }}
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:cilium-loadbalancer

0 comments on commit 1263958

Please sign in to comment.