-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 1.13 KB
/
deploy-image.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Deploy Tools image
on:
workflow_dispatch:
push:
branches: ["main"]
paths:
- "**"
- "Dockerfile"
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push worker image
env:
IMAGE_NAME_LATEST: ghcr.io/bcc-code/bcc-media/tools:latest
IMAGE_NAME: ghcr.io/bcc-code/bcc-media/tools:${{ github.sha }}
run: |
docker build . --file Dockerfile --tag $IMAGE_NAME --build-arg NUXT_PUBLIC_GRPC_URL=${{ vars.NUXT_PUBLIC_GRPC_URL }} --build-arg NUXT_PUBLIC_RUDDERSTACK_WRITE_KEY=${{ vars.NUXT_PUBLIC_RUDDERSTACK_WRITE_KEY }} --build-arg NUXT_PUBLIC_RUDDERSTACK_DATA_PLANE_URL=${{ vars.NUXT_PUBLIC_RUDDERSTACK_DATA_PLANE_URL }}
docker tag $IMAGE_NAME $IMAGE_NAME_LATEST
docker push $IMAGE_NAME
docker push $IMAGE_NAME_LATEST