docker-devops-helper/.gitea/workflows/dev.yaml

24 lines
777 B
YAML
Raw Normal View History

2023-07-23 19:14:51 +02:00
on:
push:
branches-ignore:
- main
jobs:
build:
runs-on: docker
steps:
- uses: actions/checkout@v3
2023-07-23 19:20:44 +02:00
- name: docker login
2023-07-23 19:22:03 +02:00
run: docker login -u $REGISTRY_USER -p $REGISTRY_PASSWORD gitea.sikorski.cloud
2023-07-23 19:14:51 +02:00
- name: Pull Docker Image for caching
2023-07-23 19:16:23 +02:00
run: docker pull gitea.sikorski.cloud/rogersik/docker-admin-helper:development || exit 0
2023-07-23 19:14:51 +02:00
- name: Build docker image
run: |
docker build . \
2023-07-23 19:16:23 +02:00
--cache-from gitea.sikorski.cloud/rogersik/docker-admin-helper:development \
2023-07-23 19:14:51 +02:00
--file Dockerfile \
2023-07-23 19:16:23 +02:00
--tag gitea.sikorski.cloud/rogersik/docker-admin-helper:development
2023-07-23 19:14:51 +02:00
- name: Push docker image
2023-07-23 19:16:23 +02:00
run: docker push gitea.sikorski.cloud/rogersik/docker-admin-helper --all-tags
2023-07-23 19:15:39 +02:00