alaskartv-docker/.forgejo/workflows/buildfin.yml

37 lines
951 B
YAML
Raw Permalink Normal View History

2024-12-19 03:08:26 +00:00
name: Build AlaskarFin
2024-12-19 03:06:35 +00:00
on:
push:
paths:
- alaskarfin/version.txt
jobs:
build-alaskarfin:
2025-01-04 02:36:19 +00:00
runs-on: host
2024-12-19 03:06:35 +00:00
steps:
# Step 1: Check out the repository
- name: Checkout code
uses: actions/checkout@v4
# Step 2: Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# Step 3: Log in to Docker Hub
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
# Step 4: Build and push the Docker image
- name: Build and Push Image
uses: docker/build-push-action@v6
with:
context: alaskarfin # Path to the build context
file: alaskarfin/Dockerfile # Path to the Dockerfile
push: true # Push the image to Docker Hub
tags: |
nomadics/alaskarfin:latest