Files
test-cicd/.gitea/workflows/deploy.yaml
Arnaud Scheffler f4a4386867
Some checks failed
ci / docker (push) Failing after 28s
chore: test ci 7
2024-10-04 11:04:39 +02:00

42 lines
1.1 KiB
YAML

name: ci
on:
push:
env:
IMAGE_NAME: arnaud/my-test-app
jobs:
docker:
runs-on: ubuntu-latest
steps:
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3
# - name: debug
# run: echo "${{ secrets.GITEA_TOKEN}}" > p && sleep 300
#
# - name: Login to Docker Hub
# uses: docker/login-action@v3
# with:
# registry: git.s-algo.com
# username: token
# password: ${{ secrets.GITEA_TOKEN}}
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: git.s-algo.com
username: ${{ gitea.repository_owner }}
password: ${{ secrets.PACKAGE_PAT}}
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE_NAME }}
- name: Build and push
uses: docker/build-push-action@v6
with:
tags: ${{ steps.meta.outputs.tags }}
annotations: ${{ steps.meta.outputs.annotations }}
push: true