Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ventsislav-georgiev committed Nov 13, 2023
1 parent 5bef4e3 commit 9718e62
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 5 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: ci

on:
push:

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Checkout
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: k8s-pod-restart-info-collector:latest
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ RUN CGO_ENABLED=0 go build -o /k8s-pod-restart-info-collector /

FROM alpine:3.15
COPY --from=builder /k8s-pod-restart-info-collector /k8s-pod-restart-info-collector
CMD ["/k8s-pod-restart-info-collector"]
CMD ["/k8s-pod-restart-info-collector"]
8 changes: 4 additions & 4 deletions build.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
TAG="v1.4.0"
TAG="v1.4.0-payhawk.1"
docker buildx build --platform linux/amd64 -t devopsairwallex/k8s-pod-restart-info-collector:${TAG} .
docker push devopsairwallex/k8s-pod-restart-info-collector:${TAG}
# docker push devopsairwallex/k8s-pod-restart-info-collector:${TAG}

docker tag devopsairwallex/k8s-pod-restart-info-collector:${TAG} devopsairwallex/k8s-pod-restart-info-collector:latest
docker push devopsairwallex/k8s-pod-restart-info-collector:latest
# docker tag devopsairwallex/k8s-pod-restart-info-collector:${TAG} devopsairwallex/k8s-pod-restart-info-collector:latest
# docker push devopsairwallex/k8s-pod-restart-info-collector:latest

0 comments on commit 9718e62

Please sign in to comment.