From 7376345bd27bfe1b6a1432cf48a4f7b654839d41 Mon Sep 17 00:00:00 2001 From: Paul Pan Date: Sun, 31 Dec 2023 14:12:57 +0800 Subject: [PATCH] feat: add GitHub Action --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..8a827a3 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: Docker Image CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Docker Login + uses: docker/login-action@v3.0.0 + with: + registry: git.0x7f.app + username: Paul + password: ${{ secrets.GITEA_DOCKER_TOKEN }} + - name: Build And Push + uses: docker/build-push-action@v5.1.0 + with: + push: ${{ github.event_name != 'pull_request' }} + tags: git.0x7f.app/woj/woj-ui:1.0.0 + secrets: | + SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }} +