wynn/.gitea/workflows/dockerfiles.yml

38 lines
1.2 KiB
YAML
Raw Normal View History

2025-02-27 04:36:09 +00:00
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
2025-02-27 05:33:28 +00:00
REGISTRY: tuxpa.in
IMAGE_ROOT: a/wynn
2025-02-27 04:36:09 +00:00
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: ./ts
2025-02-27 04:36:44 +00:00
file: ./ts/Dockerfile
2025-03-02 08:38:31 +00:00
platforms: linux/amd64
2025-02-27 04:36:09 +00:00
push: true
2025-02-27 05:50:51 +00:00
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_ROOT }}/ts:cache
2025-02-27 05:56:40 +00:00
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_ROOT }}/ts:cache,mode=max,image-manifest=true,oci-mediatypes=true,type=registry
2025-02-27 05:02:58 +00:00
tags: |
2025-03-02 08:38:31 +00:00
${{env.REGISTRY}}/${{env.IMAGE_ROOT}}/ts:${{ gitea.ref_name }},
2025-02-27 05:34:43 +00:00
${{env.REGISTRY}}/${{env.IMAGE_ROOT}}/ts:${{ gitea.head_ref || gitea.ref_name }}
2025-02-27 04:36:09 +00:00