Use docker actions instead of docker commands

Run on ubuntu-latest since docker actions
should setup everyting automatically.
This commit is contained in:
Laborratte 5 2025-11-15 14:47:35 +01:00
parent 40b6706058
commit 0a08f1b165
Signed by: Laborratte5
GPG key ID: 3A30072E35202C02

View file

@ -10,10 +10,15 @@ enable-email-notification: true
jobs: jobs:
publish-docker: publish-docker:
runs-on: ubuntu-act runs-on: ubuntu-latest
steps: steps:
- uses: https://code.forgejo.org/actions/checkout@v4 - uses: https://code.forgejo.org/actions/checkout@v4
- run: docker build -t linux-iso-seeder:latest . - name: Set up Docker Buildx
- run: docker tag linux-iso-seeder:latest git.ratte.dev/laborratte5/linux-iso-seeder:latest uses: docker/setup-buildx-action@v3
- run: docker tag linux-iso-seeder:latest git.ratte.dev/laborratte5/linux-iso-seeder:$(git rev-parse --short HEAD)-$(date --utc --iso-8601) - name: Build and push
uses: docker/build-push-action@v6
with:
#push: true
tags:
- git.ratte.dev/laborratte5/linux-iso-seeder:latest
- git.ratte.dev/laborratte5/linux-iso-seeder:$(git rev-parse --short HEAD)-$(date --utc --iso-8601)