-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
106 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
version: 2 | ||
updates: | ||
# Maintain dependencies for GitHub Actions | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: ci | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- name: Docker meta | ||
id: meta | ||
uses: docker/metadata-action@v4 | ||
with: | ||
# list of Docker images to use as base name for tags | ||
images: | | ||
${{ github.repository }} | ||
# generate Docker tags based on the following events/attributes | ||
tags: | | ||
type=schedule | ||
type=ref,event=branch | ||
type=ref,event=pr | ||
type=semver,pattern={{version}} | ||
type=semver,pattern={{major}}.{{minor}} | ||
type=semver,pattern={{major}} | ||
type=sha | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Build and push | ||
uses: docker/build-push-action@v3 | ||
with: | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
- name: Docker Hub Description | ||
uses: peter-evans/dockerhub-description@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
repository: ${{ github.repository }} | ||
- name: test | ||
uses: addnab/docker-run-action@v3 | ||
with: | ||
image: ${{ github.repository }}:latest | ||
run: | | ||
set -e | ||
kubectl version --client | ||
k version | ||
docker version | ||
yq --version | ||
jq --version | ||
kind version | ||
k3d version | ||
tkn version | ||
kpt version | ||
helm version | ||
kubectl krew version | ||
kubectl tkn version | ||
# kubectl ns --help | ||
# kubectl ctx --help | ||
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
|
||
#-------------main-------------- | ||
build-env: | ||
docker buildx build --platform linux/amd64 -t marniks7/dev-env -f DockerfileBuildx --progress plain --load . | ||
docker buildx build --platform linux/amd64 -t marniks7/env --progress plain --load . | ||
run-env: | ||
docker run --network host --add-host=host.docker.internal:host-gateway -it \ | ||
-v ${PWD}:${PWD} \ | ||
touch .bash_history && docker run --network host --add-host=host.docker.internal:host-gateway -it \ | ||
-v ${PWD}:${PWD} --workdir ${PWD} \ | ||
--mount type=bind,source=${PWD}/.bash_history,target=/root/.bash_history \ | ||
-v /var/run/docker.sock:/var/run/docker.sock --workdir ${PWD} \ | ||
--user=$(id -u):$(id -g) \ | ||
marniks7/dev-env bash -c './init.sh && bash' | ||
-v /var/run/docker.sock:/var/run/docker.sock \ | ||
marniks7/env bash -c './init.sh && bash' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters