Skip to content

Commit

Permalink
[UPDATE] Change deploy server
Browse files Browse the repository at this point in the history
Change deploying docker hub to deploying docker registry
  • Loading branch information
smoothbear authored May 1, 2021
1 parent 2e15d46 commit afa8ae8
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,21 @@ jobs:
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
- name: Grant permission to gradlew
run: chmod 755 gradlew
- name: Build Gradle
run: ./gradlew clean build --exclude-task test
- name: Push to Docker Hub
uses: docker/build-push-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: avocatpear/backend
file: ./Dockerfile
path: ./
tag_with_ref: true
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}

0 comments on commit afa8ae8

Please sign in to comment.