wynn/.gitea/workflows/dockerfiles.yml
a 79cea96292
Some checks failed
commit-tag / commit-tag-image (push) Failing after 16s
its a matrix now
2025-03-02 17:55:01 -06:00

44 lines
1.5 KiB
YAML

name: commit-tag
on:
push
jobs:
commit-tag-image:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
env:
DOCKER_LATEST: nightly
RUNNER_TOOL_CACHE: /toolcache
REGISTRY: tuxpa.in
IMAGE_ROOT: a/wynn
strategy:
matrix:
options:
name: ts
context: ./ts
file: ./ts/Dockerfile
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
registry: https://tuxpa.in
username: actions_token
password: ${{ secrets.ACTIONS_TOKEN }}
- name: build and push typescript
uses: docker/build-push-action@v6
with:
context: ${{ matrix.options.context }}
file: ${{ matrix.options.file }}
platforms: linux/amd64
push: true
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_ROOT }}/${{matrix.options.name}}:cache
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_ROOT }}/${{matrix.options.name}}:cache,mode=max,image-manifest=true,oci-mediatypes=true,type=registry
tags: |
${{env.REGISTRY}}/${{env.IMAGE_ROOT}}/${{matrix.options.name}}:${{ gitea.ref_name }},
${{env.REGISTRY}}/${{env.IMAGE_ROOT}}/${{matrix.options.name}}:${{ gitea.head_ref || gitea.ref_name }}