name: Build and Push Docker Images on: push: branches: - main jobs: build: runs-on: ubuntu-latest services: docker: image: docker:19.03.12 options: --privileged steps: - name: Checkout code uses: actions/checkout@v4 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Log in to Gitea uses: docker/login-action@v3 with: registry: gitea.rannes.dev username: christian password: ${{ secrets.REGISTRY_TOKEN }} - name: Build and push Flask API image uses: docker/build-push-action@v5 with: context: ./api push: true tags: gitea.rannes.dev/rannes.dev/sw-jobs-api:latest # - name: Build and push Svelte client image # uses: docker/build-push-action@v5 # with: # context: ./client # push: true # tags: gitea.rannes.dev/rannes.dev/sw-jobs-client:latest - name: Build and push scraper image uses: docker/build-push-action@v5 with: context: ./scrapers push: true tags: gitea.rannes.dev/rannes.dev/sw-jobs-scraper:latest