Skip to content

Commit

Permalink
Update github action
Browse files Browse the repository at this point in the history
  • Loading branch information
WAAutoMaton committed May 4, 2024
1 parent 9ed1c7a commit 24bcf69
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
name: Docker Image CI
on:
push:
branches: [ "master" ]
branches: [ "**" ]

jobs:
build:
runs-on: ubuntu-22.04
permissions:
packages: write
contents: read
env:
tag: ${{ secrets.CI_REGISTRY }}/geekpie/coursebench-backend:latest
REGISTRY: ghcr.io
USERNAME: ShanghaitechGeekPie
IMAGE_NAME : ${{ github.repository }}
steps:
- uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v2
- name: Checkout repository
uses: actions/checkout@v3

- name: Login to Container registry
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ env.USERNAME }}
Expand Down

0 comments on commit 24bcf69

Please sign in to comment.