Přidat .gitea/workflows/build.yml
Some checks failed
Build nginx main / Explore-Gitea-Actions (push) Failing after 39s
Some checks failed
Build nginx main / Explore-Gitea-Actions (push) Failing after 39s
This commit is contained in:
parent
df75a28bc5
commit
5b753bed08
25
.gitea/workflows/build.yml
Normal file
25
.gitea/workflows/build.yml
Normal file
@ -0,0 +1,25 @@
|
||||
name: Build nginx main
|
||||
run-name: Build nginx main docker image
|
||||
on: [push]
|
||||
jobs:
|
||||
Explore-Gitea-Actions:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Prepare | Setup git
|
||||
run: |
|
||||
git config --global user.name "Radim Lipovčan"
|
||||
git config --global user.email "radim@lipovcan.cz"
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
- name: Build | Install Docker
|
||||
run: |
|
||||
apt-get update && apt-get install docker.io -y
|
||||
- name: Build | Clone repository
|
||||
run: |
|
||||
ls -lah
|
||||
- name: Login to Docker Hub
|
||||
run: |
|
||||
echo "${{ secrets.DOCKERHUB_GITEA_TOKEN }}" | docker login -u ownercz --password-stdin
|
||||
ls -lah
|
||||
docker build -t ownercz/nginx-main:latest .
|
||||
docker push ownercz/nginx-main
|
Loading…
Reference in New Issue
Block a user