Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Commit

Permalink
Use clone in context
Browse files Browse the repository at this point in the history
  • Loading branch information
coretl committed Jan 17, 2024
1 parent c71c3cb commit 7bcda81
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/_container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,10 @@ jobs:
# Need this to get version number from last tag
fetch-depth: 0

- run: ls -a


- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3

- run: ls -a


- name: Log in to GitHub Docker Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
Expand All @@ -30,11 +24,10 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- run: ls -a

- name: Build and export to Docker local cache
uses: docker/build-push-action@v5
with:
context: .
# Need load and tags so we can test it below
load: true
tags: tag_for_testing
Expand All @@ -57,6 +50,7 @@ jobs:
# This does not build the image again, it will find the image in the
# Docker cache and publish it
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 7bcda81

Please sign in to comment.