POST? #78
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |