23 lines
504 B
YAML
23 lines
504 B
YAML
name: Build and Push Docker Image
|
|
|
|
on:
|
|
push:
|
|
branches: [ v3 ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Login to Gitea Registry
|
|
run: echo "${{ secrets.OCI_ACCESS_TOKEN }}" | docker login git.drath.cc -u drath --password-stdin
|
|
|
|
- name: Build image
|
|
run: docker build -t git.drath.cc/drath/drath.cc:latest .
|
|
|
|
- name: Push image
|
|
run: docker push git.drath.cc/drath/drath.cc:latest
|