Skip to content

Commit

Permalink
Push changes to the default branch to DockerHub as latest (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshraker authored Mar 29, 2024
1 parent c7d7de6 commit ea111d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ name: build-and-push-docker-image

on:
push:
branches: [ main ]
release:
types:
- created
branches:
- main

jobs:
push-image:
Expand All @@ -26,6 +24,8 @@ jobs:
uses: docker/metadata-action@v3
with:
images: aptible/deploy-demo-app
tags: |
type=raw,value=latest,enable={{is_default_branch}}
- name: Build and push Docker images
uses: docker/build-push-action@v2
Expand Down

0 comments on commit ea111d9

Please sign in to comment.