Skip to content

Commit

Permalink
on main push workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
xerbalind committed Aug 1, 2024
1 parent 5187cc2 commit c0e3a89
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 32 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release Package

on:
push:
branches:
- main
- workflow

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
32 changes: 0 additions & 32 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit c0e3a89

Please sign in to comment.