# Variable \`image.url\` not found when using GitHub Actions

**URL:** <https://zola.discourse.group/t/variable-image-url-not-found-when-using-github-actions/1616>\
**Category:** Support\
**Created:** [January 22, 2023, 12:41am UTC](https://zola.discourse.group/t/variable-image-url-not-found-when-using-github-actions/1616 "2023-01-22T00:41:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PeCoBe](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/pecobe/32/910_2.png) [@PeCoBe](https://zola.discourse.group/u/PeCoBe)\
**Post date:** [January 22, 2023, 12:41am UTC](https://zola.discourse.group/t/variable-image-url-not-found-when-using-github-actions/1616/1 "2023-01-22T00:41:16Z")

</div>

Hey all.

I started using the resize\_image shortcode in my blog.  
Is all good until I try to deploy using GitHub Actions, into a AWS S3 bucket.

```auto
Run ./zola build
Building site...
Failed to build the site
Error: Failed to render content of /home/runner/work/website/website/content/blog/performance-testing-101/index.md
Reason: Failed to render resize_image shortcode
Reason: Failed to render 'shortcodes/resize_image.html'
Reason: Variable `image.url` not found in context while rendering 'shortcodes/resize_image.html'
Error: Process completed with exit code 1.

```

This is the shortcode

```auto
{% set image = resize_image(path=path, width=width, height=height, op=op) %}
<img src="{{image.url}}" class="{{class}}"/>

```

And using build locally creates the img element like this

```auto
<img src="https:&#x2F;&#x2F;mysite.com&#x2F;processed_images&#x2F;9f66a5fa8329559b00.jpg" class="post_std-image-float"/>

```

---

<div class="post-metadata">

**Author:** ![keats](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@keats](https://zola.discourse.group/u/keats)\
**Post date:** [January 22, 2023, 9:52am UTC](https://zola.discourse.group/t/variable-image-url-not-found-when-using-github-actions/1616/2 "2023-01-22T09:52:55Z")

</div>

Maybe a different version of Zola?

---

<div class="post-metadata">

**Author:** ![PeCoBe](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/pecobe/32/910_2.png) [@PeCoBe](https://zola.discourse.group/u/PeCoBe)\
**Post date:** [February 7, 2023, 12:33am UTC](https://zola.discourse.group/t/variable-image-url-not-found-when-using-github-actions/1616/3 "2023-02-07T00:33:34Z")

</div>

> [@PeCoBe](#):
>
> `;processed_images&#x2F;9f66a5fa8329559b00.jpg" class=`

I was able to fix.

First yes, I forgot to update the command in github actions, it was using version 12.  
I update to the version im working with, 15.

Then was just a minor adjustment to change the `my\path\` was using in the path for `my/path/`
