mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-08-07 08:38:45 +00:00
add build docker image
This commit is contained in:
parent
8c98f0f820
commit
3e243eb249
1 changed files with 31 additions and 0 deletions
31
.github/workflows/image.yml
vendored
Normal file
31
.github/workflows/image.yml
vendored
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue