A different approach
Some checks failed
Anatid Blog CI Workflow / build-and-push-images (./backend/Dockerfile, git.anatid.net/tabris/anatid-blog-backend:latest) (push) Failing after 32s
Anatid Blog CI Workflow / build-and-push-images (./frontend/Dockerfile, git.anatid.net/tabris/anatid-blog-frontend:latest) (push) Failing after 14s

This commit is contained in:
Phill Pover 2025-03-27 10:28:03 +00:00
parent f70a1b7a58
commit 6984c0a291

View File

@ -5,10 +5,18 @@ on:
push: push:
jobs: jobs:
docker: build-and-push-images:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: catthehacker/ubuntu:act-latest image: catthehacker/ubuntu:act-latest
strategy:
fail-fast: false
matrix:
include:
- dockerfile: ./backend/Dockerfile
image: git.anatid.net/tabris/anatid-blog-backend:latest
- dockerfile: ./frontend/Dockerfile
image: git.anatid.net/tabris/anatid-blog-frontend:latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -20,17 +28,16 @@ jobs:
password: ${{ secrets.REPO_PASSWORD }} password: ${{ secrets.REPO_PASSWORD }}
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
- name: Build backend - name: Extract metadata (tags, labels) for Docker
run: cd ./backend id: meta
uses: docker/metadata-action@v5
with:
images: ${{ matrix.image }}
- name: Build and push - name: Build and push
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with:
context: .
file: ${{ matrix.dockerfile }}
push: true push: true
tags: git.anatid.net/tabris/anatid-blog-backend:latest tags: ${{ steps.meta.outputs.tags }}
- name: Build frontend labels: ${{ steps.meta.outputs.labels }}
run: cd ../frontend
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: git.anatid.net/tabris/anatid-blog-frontend:latest