feature/gitea-actions #1

Merged
RogerSik merged 25 commits from feature/gitea-actions into main 2023-07-24 06:58:05 +02:00
Showing only changes of commit 600dc7f66a - Show all commits

View File

@ -6,20 +6,18 @@ on:
jobs: jobs:
build: build:
runs-on: k3s runs-on: k3s
container: # container:
image: docker:24-cli # image: docker:24-cli
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: docker login - name: docker login
run: docker login -u $REGISTRY_USER -p $REGISTRY_PASSWORD gitea.sikorski.cloud uses: docker/login-action@v2
- name: Pull Docker Image for caching with:
run: docker pull gitea.sikorski.cloud/rogersik/docker-admin-helper:development || exit 0 registry: "gitea.sikorski.cloud"
- name: Build docker image username: ${{ secrets.REGISTRY_USER }}
run: | password: ${{ secrets.REGISTRY_PASSWORD }}
docker build . \ - name: Build and push
--cache-from gitea.sikorski.cloud/rogersik/docker-admin-helper:development \ uses: docker/build-push-action@v4
--file Dockerfile \ with:
--tag gitea.sikorski.cloud/rogersik/docker-admin-helper:development push: true
- name: Push docker image tags: gitea.sikorski.cloud/rogersik/docker-admin-helper:development
run: docker push gitea.sikorski.cloud/rogersik/docker-admin-helper --all-tags