This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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
|
||||
Reference in New Issue
Block a user