sw-jobs-api/.gitea/workflows/build-all-prod.yaml

51 lines
1.2 KiB
YAML
Raw Normal View History

2024-05-29 21:28:58 +00:00
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
2024-05-29 22:12:11 +00:00
# - 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
2024-05-29 21:28:58 +00:00
- 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