parent
63d2213062
commit
600dc7f66a
@ -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
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user