From 3e243eb2495e7d04790860afe85b0fdd3f34a1bf Mon Sep 17 00:00:00 2001
From: Peter Galonza
Date: Mon, 13 May 2024 23:48:16 +0300
Subject: [PATCH] add build docker image
---
.github/workflows/image.yml | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
create mode 100644 .github/workflows/image.yml
diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml
new file mode 100644
index 000000000..b08602543
--- /dev/null
+++ b/.github/workflows/image.yml
@@ -0,0 +1,31 @@
+name: Build image
+
+on:
+ push:
+ branches:
+ - evaron-master
+ paths:
+ - 'Dockerfile'
+
+env:
+ IMAGE_NAME: devkita64-atmosphere
+
+jobs:
+ push:
+ runs-on: ubuntu-latest
+ permissions:
+ packages: write
+ contents: read
+ attestations: write
+ steps:
+ - uses: actions/checkout@v4
+ - name: Build image
+ run: |
+ docker build . --no-cache \
+ --file Dockerfile --tag $IMAGE_NAME --label "runnumber=${{ github.run_id }}"
+ - name: Log in to registry
+ run: docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
+ - name: Push image
+ run: |
+ docker tag $IMAGE_NAME ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME:latest
+ docker push ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME:latest
\ No newline at end of file