22 lines
665 B
YAML
22 lines
665 B
YAML
name: build
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build-and-push:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Log in to Gitea container registry
|
|
run: echo "${{ secrets.CI_REGISTRY_TOKEN }}" | docker login gitea.niq-dev.com -u "${{ gitea.actor }}" --password-stdin
|
|
|
|
- name: Build image
|
|
run: docker build -t gitea.niq-dev.com/gitea_admin/landing:${{ gitea.sha }} -t gitea.niq-dev.com/gitea_admin/landing:latest .
|
|
|
|
- name: Push image
|
|
run: |
|
|
docker push gitea.niq-dev.com/gitea_admin/landing:${{ gitea.sha }}
|
|
docker push gitea.niq-dev.com/gitea_admin/landing:latest
|