Skip to content

Commit

Permalink
Use different method of creating temporary dir
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaxii committed Jul 10, 2024
1 parent a4821ce commit bd84fac
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ jobs:

- name: Create temporary directory and copy files
run: |
mkdir temp-dir
cp -r . temp-dir/
cd temp-dir
temp_dir=$(mktemp -d)
cp -r . "$temp_dir"
cd "$temp_dir"
ls -la
- name: Build and push Docker image
id: build
uses: docker/build-push-action@v4
with:
context: temp-dir
file: temp-dir/Dockerfile
context: ${{ steps.build.outputs.temp_dir }}
file: ${{ steps.build.outputs.temp_dir }}/Dockerfile
platforms: linux/arm64
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/vow-website:latest
Expand Down

0 comments on commit bd84fac

Please sign in to comment.