From c9b1029a3c8b898c54e5c5a8c708dfa75a80ec9f Mon Sep 17 00:00:00 2001 From: zphrs <46908127+zphyrj@users.noreply.github.com> Date: Wed, 8 May 2024 18:14:26 -0700 Subject: [PATCH] added build workflow --- .github/workflows/build.yml | 20 ++++++++++++++++++++ .gitignore | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..5a887d5 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,20 @@ +name: Build and push Docker images +on: + push: + branches: + - release +jobs: + deploy: + runs-on: alpine-latest + steps: + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build + uses: docker/build-push-action@v5.3.0 + with: + push: true + tags: ghcr.io/zphrs/ucsc-menu diff --git a/.gitignore b/.gitignore index bd7d472..307add8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ /target /.vscode install -.github \ No newline at end of file +secrets \ No newline at end of file