Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
genekogan committed Dec 12, 2023
2 parents 28c16c8 + fabca05 commit 460af9a
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,17 @@ jobs:
echo ::set-output name=tag::${TAG}
echo ::set-output name=image::${IMAGE}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Log in to GHCR
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
Expand All @@ -42,11 +53,13 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile
push: true
tags:
${{ steps.prep.outputs.tagged_image }},${{ steps.prep.outputs.image
}}:latest
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit 460af9a

Please sign in to comment.