Add fix for running image on macbook m1/m2 (ARM) (#12) #64
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: main | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| env: | |
| TEST_TAG: hexletcomponents/devops-example-app:test | |
| jobs: | |
| docker: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: docker/setup-qemu-action@v1 | |
| - uses: docker/setup-buildx-action@v1 | |
| - uses: docker/login-action@v2 | |
| with: | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKER_PASSWORD }} | |
| - name: Build and export to Docker | |
| uses: docker/build-push-action@v2 | |
| with: | |
| context: . | |
| load: true | |
| tags: ${{ env.TEST_TAG }} | |
| - run: make compose-test-ci | |
| - run: make compose-lint-ci | |
| - name: Build and push app | |
| uses: docker/build-push-action@v2 | |
| with: | |
| context: . | |
| push: true | |
| tags: hexletcomponents/devops-example-app:latest | |
| - name: Build and push caddy | |
| uses: docker/build-push-action@v2 | |
| with: | |
| context: . | |
| file: services/caddy/Dockerfile | |
| push: true | |
| tags: hexletcomponents/devops-example-caddy:latest |