Migrate image to new repo
This commit is contained in:
36
.gitea/workflows/image.yml
Normal file
36
.gitea/workflows/image.yml
Normal file
@@ -0,0 +1,36 @@
|
||||
name: Build and Push Docker Image
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
IMAGE_NAME: arlind/skins
|
||||
|
||||
jobs:
|
||||
build_and_push:
|
||||
name: Build and Push Docker Image
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Git LFS
|
||||
run: sudo apt-get update && sudo apt-get install -y git-lfs
|
||||
|
||||
- name: Pull Git LFS files
|
||||
run: git lfs pull
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Log in to Gitea Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ secrets.CONTAINER_REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.TOKEN }}
|
||||
|
||||
- name: Build and Push Docker image
|
||||
run: |
|
||||
docker build -t ${{ secrets.CONTAINER_REGISTRY }}/$IMAGE_NAME:latest .
|
||||
docker push ${{ secrets.CONTAINER_REGISTRY }}/$IMAGE_NAME:latest
|
||||
Reference in New Issue
Block a user