From 77e4b78e701db0ed1a8c2c7ad1d6e8b24f689a67 Mon Sep 17 00:00:00 2001 From: gjuro87 Date: Fri, 8 Dec 2023 16:58:17 +0100 Subject: [PATCH] feat: add github actions --- .github/workflows/push.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/push.yaml diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml new file mode 100644 index 0000000..6fc0b59 --- /dev/null +++ b/.github/workflows/push.yaml @@ -0,0 +1,30 @@ +name: Commit +on: push + +jobs: + container: + name: Container image + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@v2 + + - name: GitHub Package Registry + uses: aevea/action-kaniko@master + with: + registry: ghcr.io + password: ${{ secrets.GITHUB_TOKEN }} + image: phoenix + # cache: true + # cache_registry: cache + tag: ${{ github.sha }} + + - name: Dockerhub + uses: aevea/action-kaniko@master + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_PASSWORD }} + image: kiwicom/phoenix + cache: true + cache_registry: kiwicom/cache + tag: ${{ github.sha }}