Skip to content

Commit

Permalink
Try adding docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
kberzinch committed Mar 2, 2024
1 parent ce752fc commit 7eef812
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,24 @@ jobs:
poetry add vale
poetry run vale sync
poetry run vale .
docker:
name: Docker
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Write Composer auth file
run: |
echo `{"github-oauth":{"github.com":"${{ github.token }}"},"http-basic":{"nova.laravel.com":{"username":"${{ secrets.LARAVEL_NOVA_USERNAME }}","password":"${{ secrets.LARAVEL_NOVA_PASSWORD }}"}}}` > auth.json
- name: Build and push
uses: docker/build-push-action@v5
with:
tags: registry.bcdc.robojackets.net/apiary:latest
github-token: ${{ github.token }}
network: host
pull: true
secret-files:
- key=filename, composer_auth=./auth.json

0 comments on commit 7eef812

Please sign in to comment.