This commit is contained in:
@@ -1,19 +1,17 @@
|
|||||||
name: Gitea Actions Demo
|
name: Docker Build
|
||||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
run-name: Building Docker Image from Docker File
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Explore-Gitea-Actions:
|
Docker-Build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
|
||||||
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
|
||||||
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@main
|
||||||
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
- name: build-and-push
|
||||||
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
|
|
||||||
- name: List files in the repository
|
|
||||||
run: |
|
run: |
|
||||||
ls ${{ gitea.workspace }}
|
mkdir -pv /etc/docker/certs.d/gitea.de.kilhaasi/
|
||||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
openssl s_client -connect gitea.de.kilhaasi:443 </dev/null 2>/dev/null | openssl x509 -inform pem > /etc/docker/certs.d/gitea.de.kilhaasi/ca.crt
|
||||||
|
docker build --tag gitea.de.kilhaasi/marcus/pms .
|
||||||
|
docker login -u marcus -p xvu0tjg5tak7ZGM!zum gitea.de.kilhaasi
|
||||||
|
docker push gitea.de.kilhaasi/marcus/pms
|
||||||
Reference in New Issue
Block a user