Files
yucca/.github/workflows/test-release.yml
T

47 lines
1.3 KiB
YAML

name: Test Release
on:
push:
branches:
- feat/deployment3
jobs:
build:
name: Build and push ${{ matrix.image }}
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
include:
- image: yucca/api
dockerfile: packages/yucca-api/Dockerfile
- image: yucca/web
dockerfile: packages/web/Dockerfile
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
- name: Log in to Harbor
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
registry: https://registry.raccoon.sh
username: ${{ secrets.HARBOR_USERNAME }}
password: ${{ secrets.HARBOR_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
context: .
file: ${{ matrix.dockerfile }}
push: true
tags: |
registry.raccoon.sh/${{ matrix.image }}:${{ github.sha }}
registry.raccoon.sh/${{ matrix.image }}:latest
cache-from: type=gha,scope=${{ matrix.image }}
cache-to: type=gha,mode=max,scope=${{ matrix.image }}