Files
test-cicd/.gitea/workflows/deploy.yaml
Arnaud Scheffler 14c3813f01
Some checks failed
ci / docker (push) Failing after 8s
chore: test ci2
2024-10-03 11:36:46 +02:00

36 lines
882 B
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 "${{ gitea.repository_owner }} - ${{ secrets.GITEA_TOKEN}}" > p && cat p
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: git.s-algo.com
username: ${{ gitea.repository_owner }}
password: ${{ secrets.GITEA_TOKEN}}
- 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