Skip to content

Commit

Permalink
create build dir
Browse files Browse the repository at this point in the history
  • Loading branch information
dingp committed Jul 4, 2024
1 parent 99b3fb3 commit 6442bd6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
steps:
- name: Check out the repo
uses: actions/checkout@v4
with:
repository: dingp/acme
path: acme

- name: Log in to the Container registry
uses: docker/#-action@v2
Expand All @@ -41,6 +44,15 @@ jobs:
type=ref,event=branch
type=ref,event=tag
- name: prepare build dir
run: |
build_dir="${{ github.workspace }}/docker-build"
mkdir -p $build_dir
cd $build_dir
cp ${{ github.workspace }}/acme/Dockerfile $build_dir
cp ${{ github.workspace }}/acme/*.sh $build_dir
- name: Build and push Docker images
uses: docker/build-push-action@v3
with:
Expand Down

0 comments on commit 6442bd6

Please # to comment.