ci: add coker to runner
This commit is contained in:
@@ -13,21 +13,16 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Install Docker CLI
|
||||||
uses: docker/setup-buildx-action@v3
|
run: |
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y docker.io
|
||||||
|
|
||||||
- name: Login to Gitea Container Registry
|
- name: Login to Gitea Container Registry
|
||||||
uses: docker/login-action@v3
|
run: echo "${{ secrets.GITEA_TOKEN }}" | docker login gitea.sinav-lab.com -u "${{ gitea.actor }}" --password-stdin
|
||||||
with:
|
|
||||||
registry: gitea.sinav-lab.com
|
|
||||||
username: ${{ gitea.actor }}
|
|
||||||
password: ${{ secrets.GITEA_TOKEN }}
|
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build Docker image
|
||||||
uses: docker/build-push-action@v5
|
run: docker build -t gitea.sinav-lab.com/sinav/keenetic-exporter:latest .
|
||||||
with:
|
|
||||||
context: .
|
- name: Push Docker image
|
||||||
push: true
|
run: docker push gitea.sinav-lab.com/sinav/keenetic-exporter:latest
|
||||||
tags: gitea.sinav-lab.com/sinav/keenetic-exporter:latest
|
|
||||||
cache-from: type=registry,ref=gitea.sinav-lab.com/sinav/keenetic-exporter:buildcache
|
|
||||||
cache-to: type=registry,ref=gitea.sinav-lab.com/sinav/keenetic-exporter:buildcache,mode=max
|
|
||||||
|
|||||||
Reference in New Issue
Block a user