# What's the idiomatic way of using gitea-hosted container images in Actions jobs?

**URL:** <https://forum.gitea.com/t/whats-the-idiomatic-way-of-using-gitea-hosted-container-images-in-actions-jobs/8566>\
**Category:** Actions\
**Created:** [February 11, 2024, 1:17pm UTC](https://forum.gitea.com/t/whats-the-idiomatic-way-of-using-gitea-hosted-container-images-in-actions-jobs/8566 "2024-02-11T13:17:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![abackstrom](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/abackstrom/32/4564_2.png) [@abackstrom](https://forum.gitea.com/u/abackstrom)\
**Post date:** [March 31, 2024, 2:40pm UTC](https://forum.gitea.com/t/whats-the-idiomatic-way-of-using-gitea-hosted-container-images-in-actions-jobs/8566/2 "2024-03-31T14:40:53Z")

</div>

This setup doesn’t work for me:

```auto
name: Deploy website
on: [push]
jobs:
  build-and-upload:
    runs-on: ubuntu-latest
    container:
      image: gitea.example.com/private-org/image
      credentials:
        username: ${{ gitea.actor }}
        password: ${{ gitea.token }}
    steps:
      - run: pwd

```

I’m not sure if the credentials are getting through:

```auto
ci(version:v0.2.8) received task 68 of job 73, be triggered by event: push
workflow prepared
evaluating expression 'success()'
expression 'success()' evaluated to 'true'
expression '${{ gitea.actor }}' rewritten to 'format('{0}', gitea.actor)'
evaluating expression 'format('{0}', gitea.actor)'
expression 'format('{0}', gitea.actor)' evaluated to '%!t(string=annika)'
expression '${{ gitea.token }}' rewritten to 'format('{0}', gitea.token)'
evaluating expression 'format('{0}', gitea.token)'
expression 'format('{0}', gitea.token)' evaluated to '%!t(string=***)'
🚀 Start image=gitea.example.com/private-org/image
  🐳 docker pull image=gitea.example.com/private-org/image platform= username=annika forcePull=false
  🐳 docker pull gitea.example.com/private-org/image
Image exists? false
pulling image 'gitea.example.com/private-org/image' ()
using authentication for docker pull
pulling image 'gitea.example.com/private-org/image' () failed with credentials Error response from daemon: unauthorized: authentication required retrying without them, please check for stale docker config files
Error response from daemon: unauthorized: authentication required

```

---

_[View the full topic](https://forum.gitea.com/t/whats-the-idiomatic-way-of-using-gitea-hosted-container-images-in-actions-jobs/8566)._
