26 lines
704 B
YAML
26 lines
704 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 and push with Buildah
|
|
run: |
|
|
buildah bud -t my-image:latest .
|
|
buildah push my-image:latest docker://git.dswd73.duckdns.org/dswd/dyndns-updater:latest
|
|
-
|
|
name: Login to Docker Hub
|
|
uses: docker/login-action@v4
|
|
with:
|
|
registry: git.dswd73.duckdns.org
|
|
username: ${{ vars.LOCAL_REPO_USER }}
|
|
password: ${{ secrets.LOCAL_REPO_TOKEN }} |