2024-12-19 03:06:35 +00:00
|
|
|
name: Build AlaskarSeer
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- alaskarseer/version.txt
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-alaskarseer:
|
2025-01-04 02:56:26 +00:00
|
|
|
runs-on: host
|
2025-01-04 03:23:15 +00:00
|
|
|
container:
|
|
|
|
image: catthehacker/ubuntu:act-latest
|
2025-01-04 03:44:33 +00:00
|
|
|
volumes:
|
2025-01-04 03:46:54 +00:00
|
|
|
- host/certs:/certs
|
2025-01-04 03:30:29 +00:00
|
|
|
env:
|
2025-01-04 03:31:57 +00:00
|
|
|
DOCKER_HOST: tcp://daemon:2376
|
2025-01-04 03:43:42 +00:00
|
|
|
DOCKER_CERT_PATH: /certs/client
|
2025-01-04 03:46:54 +00:00
|
|
|
DOCKER_TLS_VERIFY: "0"
|
2024-12-19 03:06:35 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
# Step 1: Check out the repository
|
|
|
|
- name: Checkout code
|
2025-01-04 02:36:19 +00:00
|
|
|
uses: actions/checkout@v4
|
2024-12-19 03:06:35 +00:00
|
|
|
|
|
|
|
# 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 alaskarseer image
|
|
|
|
- name: Build and Push alaskarseer Image
|
|
|
|
uses: docker/build-push-action@v6
|
|
|
|
with:
|
|
|
|
context: alaskarseer # Path to the build context
|
|
|
|
file: alaskarseer/Dockerfile # Path to the Dockerfile
|
|
|
|
push: true
|
|
|
|
tags: |
|
|
|
|
nomadics/alaskarseer:latest
|