24 lines
679 B
YAML
24 lines
679 B
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
|
|
jobs:
|
|
docker:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Install Buildah
|
|
run: |
|
|
sudo apt update -y
|
|
sudo apt install -y buildah
|
|
- name: Build with Buildah
|
|
run: |
|
|
buildah bud -t my-image:latest .
|
|
- name: Login to Registry
|
|
run: |
|
|
buildah login --username ${{ vars.LOCAL_REPO_USER }} --password ${{ secrets.LOCAL_REPO_TOKEN }} git.dswd73.duckdns.org
|
|
- name: Push to Registry
|
|
run: |
|
|
buildah push my-image:latest docker://git.dswd73.duckdns.org/dswd/dyndns-updater:latest |