diff --git a/.gitea/workflows/container.yaml b/.gitea/workflows/container.yaml index 1e73141..b73fcef 100644 --- a/.gitea/workflows/container.yaml +++ b/.gitea/workflows/container.yaml @@ -6,11 +6,16 @@ jobs: steps: - name: Check out repository code uses: actions/checkout@v3 + - name: Split branch name + env: + REPO: ${{ gitea.repository }} + id: split + run: echo "::set-output name=repo_name::${REPO##*/}" - name: Build image id: build-image uses: redhat-actions/buildah-build@v2 with: - image: ${{ secrets.DOCKERHUB_USER }}/${{ gitea.repository }} + image: ${{ secrets.DOCKERHUB_USER }}/${{ steps.split.outputs.repo_name }} tags: ${{ gitea.ref_name }} ${{ gitea.sha }} archs: arm64, amd64 containerfiles: |