Update docker-image.yml

This commit is contained in:
Kasper Plougmann 2025-07-08 12:34:25 +02:00 committed by GitHub
parent b0f4434016
commit d30f7bb4d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,12 +7,23 @@ on:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
run: |
docker build . --file Dockerfile --tag ghcr.io/${{ github.repository_owner }}/linux-iso-seeder:latest
- name: Push the Docker image
run: |
docker push ghcr.io/${{ github.repository_owner }}/linux-iso-seeder:latest