This commit is contained in:
@@ -12,16 +12,25 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Build Docker Image
|
||||
# The Dockerfile has two runnable stages and no sensible default: an
|
||||
# untargeted build produces the last one (frontend) on its own, which
|
||||
# then has nothing to proxy /api to. Both get published separately.
|
||||
- name: Build Docker Images
|
||||
run: |
|
||||
docker build -t git.alexav.gg/${{ gitea.repository }}:latest .
|
||||
docker build -t git.alexav.gg/${{ gitea.repository }}:${{ gitea.sha }} .
|
||||
docker build --target backend \
|
||||
-t git.alexav.gg/${{ gitea.repository }}:backend-latest \
|
||||
-t git.alexav.gg/${{ gitea.repository }}:backend-${{ gitea.sha }} .
|
||||
docker build --target frontend \
|
||||
-t git.alexav.gg/${{ gitea.repository }}:frontend-latest \
|
||||
-t git.alexav.gg/${{ gitea.repository }}:frontend-${{ gitea.sha }} .
|
||||
|
||||
- name: Login to Gitea Registry
|
||||
run: |
|
||||
echo "${{ secrets.RUNNER_TOKEN }}" | docker login git.alexav.gg -u ${{ gitea.actor }} --password-stdin
|
||||
|
||||
- name: Push Docker Image
|
||||
- name: Push Docker Images
|
||||
run: |
|
||||
docker push git.alexav.gg/${{ gitea.repository }}:latest
|
||||
docker push git.alexav.gg/${{ gitea.repository }}:${{ gitea.sha }}
|
||||
docker push git.alexav.gg/${{ gitea.repository }}:backend-latest
|
||||
docker push git.alexav.gg/${{ gitea.repository }}:backend-${{ gitea.sha }}
|
||||
docker push git.alexav.gg/${{ gitea.repository }}:frontend-latest
|
||||
docker push git.alexav.gg/${{ gitea.repository }}:frontend-${{ gitea.sha }}
|
||||
|
||||
Reference in New Issue
Block a user