From d1c98f62d87b856e4252cafd986a83c7bd887057 Mon Sep 17 00:00:00 2001 From: Musselman Date: Thu, 27 Jun 2024 23:07:10 -0500 Subject: [PATCH] =?UTF-8?q?Revert=20"=F0=9F=8F=97=EF=B8=8F=20Feature:=20Fo?= =?UTF-8?q?rgejo=20Actions=20Fourth=20Draft"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 58b8e8df0223c5c7af0637af270769ea14b6745c. --- .forgejo/workflows/workflow.yaml | 36 ++++++++++---------------------- 1 file changed, 11 insertions(+), 25 deletions(-) diff --git a/.forgejo/workflows/workflow.yaml b/.forgejo/workflows/workflow.yaml index f88179d..b5b7914 100644 --- a/.forgejo/workflows/workflow.yaml +++ b/.forgejo/workflows/workflow.yaml @@ -24,31 +24,17 @@ jobs: - name: Testing.. run: | echo "No Testing to do currently.." - - name: Docker meta - id: meta - uses: docker/metadata-action@v5 - with: - # list of Docker images to use as base name for tags - images: | - notatio/notatio - # generate Docker tags based on the following events/attributes - tags: | - type=semver,pattern={{version}} - type=semver,pattern={{major}}.{{minor}} - type=semver,pattern={{major}} - type=sha - - name: Login to Docker Hub - if: github.event_name != 'pull_request' - uses: docker/login-action@v3 - with: - username: ${{ vars.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Build and push - uses: docker/build-push-action@v6 - with: - push: ${{ github.event_name != 'pull_request' }} - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} + - name: Build image + run: | + podman build -t notatio . + Push-Image: + runs-on: website + steps: + - name: Push image to registry + run: | + podman login -u ${{ secrets.USERNAME }} -p ${{ secrets.PASSWORD }} docker.io + podman push notatio ${{ env.registry }}:${{ env.TAG }} + podman logout ${{ env.registry }} Cleanup: runs-on: website steps: