Updated pipeline to create a development build
All checks were successful
Build and Push Development Docker Image / build-and-push (push) Successful in 1m8s

This commit is contained in:
Luke Else 2025-03-06 14:45:39 +00:00
parent f7e3acf384
commit f34761d094
2 changed files with 31 additions and 3 deletions

30
.gitea/workflows/dev.yaml Normal file
View File

@ -0,0 +1,30 @@
name: Build and Push Development Docker Image
on:
push:
branches: [ development ]
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
registry: ${{ secrets.CONTAINER_REGISTRY }}
username: ${{ secrets.CONTAINER_REGISTRY_USERNAME }}
password: ${{ secrets.CONTAINER_REGISTRY_PASSKEY }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and Tag Docker Image
run: |
docker build -t ${{ secrets.CONTAINER_REGISTRY }}/${{ secrets.CONTAINER_REGISTRY_USERNAME }}/luke-else.co.uk:dev .
- name: Push Docker Image
run: |
docker push ${{ secrets.CONTAINER_REGISTRY }}/${{ secrets.CONTAINER_REGISTRY_USERNAME }}/luke-else.co.uk:dev

View File

@ -1,10 +1,8 @@
name: Build and Push Docker Image
name: Build and Push Latest Docker Image
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-and-push: