hadolint check added #4

Closed
RogerSik wants to merge 9 commits from feature/hadolint into main
Showing only changes of commit 15a137ef14 - Show all commits

View File

@ -20,18 +20,27 @@ jobs:
runs-on: docker runs-on: docker
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 # run: docker login -u $REGISTRY_USER -p $REGISTRY_PASSWORD gitea.sikorski.cloud
env: # env:
REGISTRY_USER: ${{ secrets.REGISTRY_USER }} # REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }} # REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
- name: Pull Docker Image for caching # - name: Pull Docker Image for caching
run: docker pull gitea.sikorski.cloud/rogersik/devops-helper:development || exit 0 # run: docker pull gitea.sikorski.cloud/rogersik/devops-helper:development || exit 0
- name: Build docker image # - name: Build docker image
run: | # run: |
docker build . \ # docker build . \
--cache-from gitea.sikorski.cloud/rogersik/devops-helper:development \ # --cache-from gitea.sikorski.cloud/rogersik/devops-helper:development \
--file Dockerfile \ # --file Dockerfile \
--tag gitea.sikorski.cloud/rogersik/devops-helper:development # --tag gitea.sikorski.cloud/rogersik/devops-helper:development
- name: Push docker image # - name: Push docker image
run: docker push gitea.sikorski.cloud/rogersik/devops-helper --all-tags # run: docker push gitea.sikorski.cloud/rogersik/devops-helper --all-tags
- name: Kaniko build
uses: aevea/action-kaniko@master
with:
registry: gitea.sikorski.cloud
image: rogersik/devops-helper
tag: development
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}