26 lines
560 B
YAML
26 lines
560 B
YAML
|
name: Docker CI
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches: [ "main" ]
|
||
|
pull_request:
|
||
|
branches: [ "main" ]
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
-
|
||
|
name: Login to Docker Registry
|
||
|
uses: docker/login-action@v3
|
||
|
with:
|
||
|
registry: docker.arimelody.me
|
||
|
username: ${{ secrets.DOCKER_USER }}
|
||
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||
|
-
|
||
|
name: Build and push
|
||
|
uses: docker/build-push-action@v6
|
||
|
with:
|
||
|
push: true
|
||
|
tags: docker.arimelody.me/openterminal:$(date +%s)
|