22 lines
1.5 KiB
YAML
22 lines
1.5 KiB
YAML
name: Build
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
workflow_dispatch:
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Login
|
|
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login 192.168.31.100:3847 -u ${{
|
|
secrets.REGISTRY_USER }} --password-stdin
|
|
|
|
- name: Build and push
|
|
run: |
|
|
docker build -t 192.168.31.100:3847/arrelin/docker-exporter:latest .
|
|
docker push 192.168.31.100:3847/arrelin/docker-exporter:latest
|
|
|
|
- name: Logout
|
|
run: docker logout 192.168.31.100:3847 |