pipeline test
This commit is contained in:
25
.gitea/workflows/pipeline.yml
Normal file
25
.gitea/workflows/pipeline.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
name: Build and Push Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Log in to Docker Hub
|
||||
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login gitea.fithwum.tech -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
||||
|
||||
- name: Build Docker image
|
||||
run: docker build -t gitea.fithwum.tech/${{ secrets.DOCKER_USERNAME }}/foundry_vtt:alpine .
|
||||
|
||||
- name: Push Docker image
|
||||
run: docker push gitea.fithwum.tech/${{ secrets.DOCKER_USERNAME }}/foundry_vtt:alpine
|
||||
|
||||
- run: echo "This job's status is ${{ job.status }}."
|
||||
Reference in New Issue
Block a user