From dc547341bae8bbf5a790c2dfa3b7eea8b095e467 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Sat, 30 Mar 2024 18:56:46 +0100 Subject: [PATCH] ci: add forgejo action --- .forgejo/workflows/build-container.yaml | 28 +++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .forgejo/workflows/build-container.yaml diff --git a/.forgejo/workflows/build-container.yaml b/.forgejo/workflows/build-container.yaml new file mode 100644 index 0000000..73ce16e --- /dev/null +++ b/.forgejo/workflows/build-container.yaml @@ -0,0 +1,28 @@ +name: Build and push Docker image + +on: + push: + branches: + - main + +jobs: + build-and-publish: + runs-on: docker + steps: + - uses: actions/checkout@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + with: + driver: docker + - name: Set up Docker Buildx + uses: docker/login-action@v2 + with: + registry: ${{ secrets.DOCKER_REGISTRY }} + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: ${{ secrets.DOCKER_REGISTRY }}/Hamcha/staxman:latest \ No newline at end of file