Skip to content

Commit

Permalink
fix(wordpress): updated path for build
Browse files Browse the repository at this point in the history
  • Loading branch information
Pipazoul committed Nov 23, 2023
1 parent 5bf2b78 commit 09104ae
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions .github/workflows/wordpress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,16 @@ jobs:
name: Build and push Wordpress bedrock image
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Push to Docker Hub
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
push: true
tags: erasme/eraboard-wordpress:${{ github.ref == 'refs/heads/main' && 'latest' || 'dev' }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
context: ./templates/wordpress
file: ./templates/wordpress/Dockerfile

- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache

0 comments on commit 09104ae

Please sign in to comment.