Skip to content

Commit

Permalink
Remove caching in docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
punitarani committed Jul 28, 2024
1 parent 37f3934 commit cea8eba
Showing 1 changed file with 8 additions and 27 deletions.
35 changes: 8 additions & 27 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,37 +15,18 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: '3.12'

- name: Set up cache for Poetry
uses: actions/cache@v3
with:
path: |
~/.cache/pypoetry
~/.cache/pip
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Install Poetry
run: |
pip install poetry
poetry --version
- name: Install dependencies
run: poetry install --no-dev --no-interaction --no-ansi
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Build the Docker image
run: docker build . --file Dockerfile --tag punitarani/axiom:latest

- name: Push the Docker image
run: docker push punitarani/axiom:latest
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: punitarani/axiom:latest

0 comments on commit cea8eba

Please sign in to comment.