diff --git a/.forgejo/workflows/action.yaml b/.forgejo/workflows/action.yaml index d4cc72a..4b6cfdf 100644 --- a/.forgejo/workflows/action.yaml +++ b/.forgejo/workflows/action.yaml @@ -9,14 +9,26 @@ jobs: container: image: docker:dind steps: - - name: Get git and docker - run: apk add git nodejs - - name: Checkout - uses: actions/checkout@v4 - - name: Login - run: echo "${{ secrets.TOKEN}}" | docker login -u deke git.dekedin.me --password-stdin - - name: Build - run: docker build -t devenv . - - name: Push image - run: docker push devenv git.dekedin.me/deke/dev-env + - name: Get git and podman + run: apk add git nodejs + - name: Checkout + uses: actions/checkout@v4 + # - name: Login + # run: echo ${{secrets.TOKEN }} docker login -u deke -p ${{ secrets.TOKEN }} git.dekedin.me + - uses: docker/login-action@v1 + with: + registry: git.dekedin.me + username: ${{ github.actor }} + password: ${{ secrets.TOKEN }} + - uses: int128/kaniko-action@v1 + with: + push: true + tags: ${{ steps.metadata.outputs.tags }} + labels: ${{ steps.metadata.outputs.labels }} + cache: true + # - name: Build + # run: podman build -t devenv . + - name: Push image + run: docker push devenv git.dekedin.me/deke/dev-env +