Skip to content

Commit

Permalink
(fix): lowercase repo name (#2)
Browse files Browse the repository at this point in the history
* (fix): Use right Dockerfile

* (fix): change pull policy to be always

* (fix): lowercase repo name
  • Loading branch information
kameshsampath authored Nov 29, 2024
1 parent a769322 commit a410172
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/slack-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -90,3 +94,4 @@ jobs:
PYTHON_TAG=${{ matrix.tag-suffix }}
cache-from: type=gha
cache-to: type=gha,mode=max
file: Dockerfile.bot
6 changes: 5 additions & 1 deletion .github/workflows/snow-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ on:

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}/snow-config

jobs:
build-and-push:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -90,3 +93,4 @@ jobs:
PYTHON_TAG=${{ matrix.tag-suffix }}
cache-from: type=gha
cache-to: type=gha,mode=max
file: Dockerfile.config
File renamed without changes.
6 changes: 4 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit a410172

Please sign in to comment.