Publish Docker image to Gitea registry
All checks were successful
build-website / build (push) Successful in 1m45s
All checks were successful
build-website / build (push) Successful in 1m45s
This commit is contained in:
@@ -28,6 +28,23 @@ jobs:
|
||||
run: npm run build
|
||||
working-directory: apps/website
|
||||
|
||||
- name: Install Docker CLI
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y docker.io
|
||||
|
||||
- name: Log in to registry
|
||||
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login code.harborsmith.co -u matt --password-stdin
|
||||
|
||||
- name: Build and push image
|
||||
env:
|
||||
IMAGE: code.harborsmith.co/matt/website
|
||||
run: |
|
||||
docker build -f apps/website/Dockerfile.prod -t $IMAGE:${{ github.sha }} apps/website
|
||||
docker push $IMAGE:${{ github.sha }}
|
||||
docker tag $IMAGE:${{ github.sha }} $IMAGE:latest
|
||||
docker push $IMAGE:latest
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user