Přidat .gitea/workflows/build.yml
Some checks are pending
Build Airflow Ownercz Image / Explore-Gitea-Actions (push) Waiting to run
Some checks are pending
Build Airflow Ownercz Image / Explore-Gitea-Actions (push) Waiting to run
This commit is contained in:
parent
c8b06eca65
commit
f3ed1b5da5
28
.gitea/workflows/build.yml
Normal file
28
.gitea/workflows/build.yml
Normal file
@ -0,0 +1,28 @@
|
||||
name: Build Airflow Ownercz Image
|
||||
run-name: Build Airflow Ownercz image and publish
|
||||
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 | Show repository
|
||||
run: |
|
||||
ls -lah
|
||||
- name: Docker | Build image and login to Docker Hub with publication
|
||||
run: |
|
||||
echo "${{ secrets.DOCKERHUB_GITEA_TOKEN }}" | docker login -u ownercz --password-stdin
|
||||
ls -lah
|
||||
docker build -t ownercz/airflow:latest .
|
||||
docker push ownercz/airflow
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user