mirror of
https://github.com/JuLi0n21/pwa-player.git
synced 2026-04-19 23:40:05 +00:00
update workflows
This commit is contained in:
27
.github/workflows/frontend.yml
vendored
27
.github/workflows/frontend.yml
vendored
@@ -23,17 +23,18 @@ jobs:
|
||||
name: osu-server
|
||||
path: grpc-backend
|
||||
|
||||
- name: Build Frontend Docker image
|
||||
run: |
|
||||
docker build -t juli0n21/frontend-container:latest -t juli0n21/frontend-container:${{ github.sha }} ./frontend
|
||||
- name: Login to Private Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: docker.illegalesachen.download
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Log in to Docker Hub
|
||||
env:
|
||||
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}
|
||||
run: echo "${DOCKER_HUB_TOKEN}" | docker login -u "${DOCKER_HUB_USERNAME}" --password-stdin
|
||||
|
||||
- name: Push Frontend Docker image
|
||||
run: |
|
||||
docker push juli0n21/frontend-container:${{ github.sha }}
|
||||
docker push juli0n21/frontend-container:latest
|
||||
- name: Build and Push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: ./frontend
|
||||
push: true
|
||||
tags: |
|
||||
docker.illegalesachen.download/osu/music/frontend:latest
|
||||
docker.illegalesachen.download/osu/music/frontend:${{ github.sha }}
|
||||
Reference in New Issue
Block a user