diff --git a/.gitea/workflows/01_test.yaml b/.gitea/workflows/01_test.yaml index 0c9b7e0..a4f908d 100644 --- a/.gitea/workflows/01_test.yaml +++ b/.gitea/workflows/01_test.yaml @@ -15,7 +15,7 @@ jobs: - name: Installing necessary packages run: apk add nodejs git curl bash - name: Check out repository code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Get access token from secret run: echo "${{ secrets.MASTODON_SECRET }}" > mastodon-data.toml - name: Run tests on docker diff --git a/.gitea/workflows/02_build.yaml b/.gitea/workflows/02_build.yaml index ffbafb8..7ca0bf9 100644 --- a/.gitea/workflows/02_build.yaml +++ b/.gitea/workflows/02_build.yaml @@ -1,5 +1,8 @@ name: Build image on: + pull_request: + paths: + - .gitea/workflows/02_build.yaml push: tags: - v* @@ -18,7 +21,7 @@ jobs: - name: Installing necessary packages run: apk add nodejs git curl bash - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Docker meta id: meta uses: https://github.com/docker/metadata-action@v4 diff --git a/Dockerfile b/Dockerfile index 7ef5ce9..e5d130b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 -FROM rust:1.79.0-slim-bullseye AS build +FROM rust:1.82.0-slim-bullseye AS build WORKDIR /app ARG APP_NAME=mastodon-image-uploader-bot