workflow: fix
This commit is contained in:
parent
e7824b2f73
commit
e54594a3a5
3 changed files with 74 additions and 70 deletions
37
.github/workflows/buildfin.yml
vendored
Normal file
37
.github/workflows/buildfin.yml
vendored
Normal file
|
@ -0,0 +1,37 @@
|
|||
name: Build Alaskarfin
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- alaskarfin/version.txt
|
||||
|
||||
jobs:
|
||||
build-alaskarfin:
|
||||
runs-on: ubuntu-latest
|
||||
environment: Dockerhub
|
||||
|
||||
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
|
37
.github/workflows/buildseer.yml
vendored
Normal file
37
.github/workflows/buildseer.yml
vendored
Normal file
|
@ -0,0 +1,37 @@
|
|||
name: Build AlaskarSeer
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- alaskarseer/version.txt
|
||||
|
||||
jobs:
|
||||
build-alaskarseer:
|
||||
runs-on: ubuntu-latest
|
||||
environment: Dockerhub
|
||||
|
||||
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 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
|
70
.github/workflows/main.yml
vendored
70
.github/workflows/main.yml
vendored
|
@ -1,70 +0,0 @@
|
|||
name: Build and Push Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- alaskarfin/version.txt
|
||||
- alaskarseer/version.txt
|
||||
|
||||
jobs:
|
||||
build-alaskarfin:
|
||||
runs-on: ubuntu-latest
|
||||
environment: Dockerhub
|
||||
if: contains(github.event.head_commit.message, 'alaskarfin/version.txt')
|
||||
|
||||
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
|
||||
|
||||
build-alaskarseer:
|
||||
runs-on: ubuntu-latest
|
||||
environment: Dockerhub
|
||||
if: contains(github.event.head_commit.message, 'alaskarseer/version.txt')
|
||||
|
||||
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 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
|
Loading…
Reference in a new issue