name: Build and Push Image on: [ push ] jobs: build: name: Build and push image runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Build Image id: build-image uses: redhat-actions/buildah-build@v2 with: image: ioteer tags: latest ${{ github.sha }} containerfiles: | ./Dockerfile - name: Push To git.tbrnt.ch id: push-to-gitea uses: redhat-actions/push-to-registry@v2 with: image: ${{ steps.build-image.outputs.image }} tags: ${{ steps.build-image.outputs.tags }} registry: git.tbrnt.ch/tobru username: ${{ secrets.REGISTRY_USERNAME }} password: ${{ secrets.REGISTRY_TOKEN }} - name: Print image url run: echo "Image pushed to ${{ steps.push-to-gitea.outputs.registry-paths }}"