From 66ccc712a255ae77bf81e155f7003b09f501bf8c Mon Sep 17 00:00:00 2001 From: Xander Bil <47951455+xerbalind@users.noreply.github.com> Date: Thu, 1 Aug 2024 19:58:39 +0000 Subject: [PATCH] on main push workflow (#292) --- .github/workflows/main.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..1c025b7 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,24 @@ +name: Release Package + +on: + push: + branches: + - main + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Build the new image + run: docker build . -t ghcr.io/zeuswpi/zauth:${{ github.sha }} + - name: Login to the container registry + run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin + - name: Tag the new image with latest + run: docker tag ghcr.io/zeuswpi/zauth:${{ github.sha }} ghcr.io/zeuswpi/zauth:latest + - name: Push the new image + run: docker push --all-tags ghcr.io/zeuswpi/zauth