use actions
Some checks failed
/ build (push) Failing after 13s

This commit is contained in:
Roger Sikorski 2023-07-23 19:28:40 +02:00
parent 63d2213062
commit 600dc7f66a
Signed by: RogerSik
GPG Key ID: 207958C85208EAC4

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