All checks were successful
Build and Push Docker Image / build (push) Successful in 1m11s
34 lines
689 B
YAML
34 lines
689 B
YAML
name: Build and Push Docker Image
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: [label-one]
|
|
container:
|
|
image: liffsh/dind
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Login to Registry
|
|
uses: docker/login-action@v2
|
|
with:
|
|
username: ${{ secrets.REGISTRY_USER }}
|
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
|
|
|
- name: ls
|
|
run:
|
|
ls
|
|
|
|
- name: Build Docker Image
|
|
env:
|
|
BRANCH_NAME: ${{ github.ref_name }}
|
|
SHORT_HASH: ${{ github.sha }}
|
|
run: |
|
|
docker build .
|
|
|
|
- name: Push
|
|
run:
|
|
docker push liffsh/lilog:latest
|