name: Build Image using Dockerfile on: push: branches: - main jobs: build: name: Build image runs-on: ubuntu-latest steps: - name: Get current date id: date run: echo "::set-output name=date::$(date '+%Y-%m-%dT%TZ%z')" - uses: actions/checkout@v3 - uses: docker/metadata-action@v3 id: metadata with: images: git.thebarrens.nu/${{ gitea.repository}} - uses: docker/login-action@v2 with: registry: git.thebarrens.nu username: ${{ gitea.actor }} password: ${{ secrets.GITEA_TOKEN }} - uses: int128/kaniko-action@v1 with: push: true tags: latest labels: ${{ steps.metadata.outputs.labels }} cache: false build-args: | BUILD_DATE: ${{ steps.date.outputs.date }}