Skip to content

Commit

Permalink
Merge pull request freifunk-gluon#3022 from blocktrron/docker-forks
Browse files Browse the repository at this point in the history
actions: improve docker image build-process
  • Loading branch information
blocktrron authored Oct 16, 2023
2 parents 7fab432 + 7ea311f commit f53efd9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ on:
push:
branches:
- 'master'
- 'v202[0-9].[0-9].x'
tags:
- 'v*'
pull_request:

env:
REGISTRY: ghcr.io
Expand All @@ -21,6 +23,7 @@ jobs:
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@b4bedf8053341df3b5a9f9e0f2cf4e79e27360c6
if: ${{ github.repository_owner == 'freifunk-gluon' && github.event_name == 'push' }}
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
Expand All @@ -34,6 +37,6 @@ jobs:
uses: docker/build-push-action@4c1b68d83ad20cc1a09620ca477d5bbbb5fa14d0
with:
context: ./contrib/docker
push: true
push: ${{ github.repository_owner == 'freifunk-gluon' && github.event_name == 'push' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit f53efd9

Please sign in to comment.