2024-08-27 13:54:14 -04:00
|
|
|
name: Actions
|
2024-01-06 21:56:28 -05:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2024-01-07 06:21:34 -05:00
|
|
|
- main
|
2024-02-14 13:23:35 -05:00
|
|
|
workflow_dispatch:
|
2024-08-27 13:54:14 -04:00
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * *'
|
2024-01-06 21:56:28 -05:00
|
|
|
|
|
|
|
jobs:
|
2024-09-18 09:04:20 -04:00
|
|
|
build:
|
2024-02-05 18:27:57 -05:00
|
|
|
runs-on: docker
|
2024-02-05 18:35:43 -05:00
|
|
|
container: catthehacker/ubuntu:act-latest
|
2024-02-05 18:27:57 -05:00
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.COASTALCOMMITSTOKEN }}
|
|
|
|
- name: Login to CoastalCommits
|
|
|
|
uses: actions/docker-login@v3
|
|
|
|
with:
|
2024-02-05 18:30:14 -05:00
|
|
|
registry: www.coastalcommits.com
|
2024-08-27 13:54:14 -04:00
|
|
|
username: cswimr
|
2024-02-05 18:27:57 -05:00
|
|
|
password: ${{ secrets.COASTALCOMMITSTOKEN }}
|
2024-10-10 15:23:57 -04:00
|
|
|
- name: Build and push uv image
|
|
|
|
uses: actions/docker-build-push@v6
|
2024-02-05 18:27:57 -05:00
|
|
|
with:
|
|
|
|
context: .
|
2024-10-10 15:23:57 -04:00
|
|
|
file: ./Dockerfile
|
2024-02-05 18:27:57 -05:00
|
|
|
push: true
|
2024-10-10 15:23:57 -04:00
|
|
|
target: uv
|
|
|
|
tags: www.coastalcommits.com/cswimr/actions:uv
|
|
|
|
- name: Build and push docs image
|
|
|
|
uses: actions/docker-build-push@v6
|
2024-01-06 21:56:28 -05:00
|
|
|
with:
|
|
|
|
context: .
|
2024-10-10 15:23:57 -04:00
|
|
|
file: ./Dockerfile
|
2024-01-06 21:56:28 -05:00
|
|
|
push: true
|
2024-10-10 15:23:57 -04:00
|
|
|
target: docs
|
|
|
|
tags: www.coastalcommits.com/cswimr/actions:docs
|
2024-08-27 13:54:14 -04:00
|
|
|
- name: Build and push Red full image
|
2024-10-10 15:23:57 -04:00
|
|
|
uses: actions/docker-build-push@v6
|
2024-08-27 13:54:14 -04:00
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
file: ./Red/full/Dockerfile
|
|
|
|
push: true
|
|
|
|
tags: www.coastalcommits.com/cswimr/red:full
|
|
|
|
- name: Build and push Red pylav image
|
2024-10-10 15:23:57 -04:00
|
|
|
uses: actions/docker-build-push@v6
|
2024-08-27 13:54:14 -04:00
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
file: ./Red/pylav/Dockerfile
|
|
|
|
push: true
|
|
|
|
tags: www.coastalcommits.com/cswimr/red:pylav
|