carservice: initial commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
name: Build and publish images
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Build and push images to the Gitea registry
|
||||
run: |
|
||||
REGISTRY="${GITHUB_SERVER_URL#http://}"
|
||||
REGISTRY="${REGISTRY#https://}"
|
||||
REPO="${GITHUB_REPOSITORY,,}"
|
||||
echo "${{ secrets.GITHUB_TOKEN }}" | docker login "$REGISTRY" -u "${{ github.actor }}" --password-stdin
|
||||
docker build -t "$REGISTRY/$REPO/backend:latest" -f Dockerfile .
|
||||
docker push "$REGISTRY/$REPO/backend:latest"
|
||||
docker build -t "$REGISTRY/$REPO/frontend:latest" -f Dockerfile.frontend .
|
||||
docker push "$REGISTRY/$REPO/frontend:latest"
|
||||
Reference in New Issue
Block a user