diff --git a/.github/workflows/slack-bot.yml b/.github/workflows/slack-bot.yml index f72d1c3..de419c1 100644 --- a/.github/workflows/slack-bot.yml +++ b/.github/workflows/slack-bot.yml @@ -56,6 +56,10 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Set lowercase image name + run: | + echo "IMAGE_NAME=$(echo ${{ github.repository }}/slack-bot | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV + - name: Extract Docker metadata id: meta uses: docker/metadata-action@v5 @@ -90,3 +94,4 @@ jobs: PYTHON_TAG=${{ matrix.tag-suffix }} cache-from: type=gha cache-to: type=gha,mode=max + file: Dockerfile.bot diff --git a/.github/workflows/snow-config.yml b/.github/workflows/snow-config.yml index 6935954..8a68a3b 100644 --- a/.github/workflows/snow-config.yml +++ b/.github/workflows/snow-config.yml @@ -23,7 +23,6 @@ on: env: REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }}/snow-config jobs: build-and-push: @@ -56,6 +55,10 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Set lowercase image name + run: | + echo "IMAGE_NAME=$(echo ${{ github.repository }}/snow-config | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV + - name: Extract Docker metadata id: meta uses: docker/metadata-action@v5 @@ -90,3 +93,4 @@ jobs: PYTHON_TAG=${{ matrix.tag-suffix }} cache-from: type=gha cache-to: type=gha,mode=max + file: Dockerfile.config diff --git a/Dockerfile b/Dockerfile.bot similarity index 100% rename from Dockerfile rename to Dockerfile.bot diff --git a/docker-compose.yml b/docker-compose.yml index d73be3f..257a0b0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,8 @@ services: build: dockerfile: Dockerfile.config context: . - image: ghcr.io/kameshsampath/snowflake_demo_user_setup + image: ghcr.io/kameshsampath/apj-build-2024-slack-demo/snow-config:py-311 + pull_policy: always user: me volumes: - snowflake_home:/home/me/.snowflake @@ -16,7 +17,8 @@ services: build: dockerfile: Dockerfile context: . - image: ghcr.io/kameshsampath/demomate:build24 + image: ghcr.io/kameshsampath/apj-build-2024-slack-demo/slack-bot:py-311 + pull_policy: always user: me env_file: - .env.bot