Skip to content

Commit

Permalink
Some workflow tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jordemort committed May 3, 2024
1 parent 41630cb commit b2e16c0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/astro-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Generate Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/jordemort/jordemort-blog

- name: Cache dependencies
id: cache-dependencies
uses: actions/cache@v4
Expand All @@ -45,7 +51,9 @@ jobs:
- name: Build and maybe push builder
uses: docker/build-push-action@v5
with:
context: .
cache-to: type=inline
labels: ${{ steps.meta.outputs.labels }}
pull: true
push: ${{ github.event_name == 'push' }}
tags: ghcr.io/jordemort/jordemort-blog-builder:latest
Expand All @@ -58,6 +66,8 @@ jobs:
uses: docker/build-push-action@v5
if: ${{ github.event_name == 'push' }}
with:
context: .
labels: ${{ steps.meta.outputs.labels }}
push: true
tags: ghcr.io/jordemort/jordemort-blog-dependencies:latest
target: dependencies
Expand All @@ -66,6 +76,9 @@ jobs:
uses: docker/build-push-action@v5
if: ${{ github.event_name == 'push' }}
with:
context: .
labels: ${{ steps.meta.outputs.labels }}
pull: true
push: true
tags: ghcr.io/jordemort/jordemort-blog:latest
target: dependencies

0 comments on commit b2e16c0

Please sign in to comment.