Skip to content

Commit

Permalink
ci: reinstate docker image on main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
TendTo committed Nov 30, 2023
1 parent 51e91f0 commit ed0f494
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Docker

on:
push:
branches:
- master
tags:
- "*"

Expand Down Expand Up @@ -33,12 +35,22 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
- name: Build and push Docker image (latest)
uses: docker/build-push-action@v5
if: startsWith(github.ref, 'refs/tags/')
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
VERSION=${{ github.ref_name }}
- name: Build and push Docker image (branch)
uses: docker/build-push-action@v5
if: startsWith(github.ref, 'refs/heads')
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit ed0f494

Please sign in to comment.