Skip to content

Commit

Permalink
feat(docker): autobuild
Browse files Browse the repository at this point in the history
  • Loading branch information
horacekj committed Nov 13, 2024
1 parent 5f3f88b commit cfe8682
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Docker Compose Build and Push

on:
push:
branches:
- main
- master

jobs:
build_and_push:
runs-on: ubuntu-latest

steps:
- name: Check out the repository, including submodules
uses: actions/checkout@v3
with:
submodules: recursive
path: web

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker images
working-directory: ./web
run: |
docker compose build
docker compose push

0 comments on commit cfe8682

Please sign in to comment.