Skip to content

Commit

Permalink
test for cicd
Browse files Browse the repository at this point in the history
  • Loading branch information
Seriainme committed Jun 22, 2024
1 parent 76d3bea commit 38c72f1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,17 @@ jobs:

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2


- name: Set short SHA
id: shortsha
run: echo "SHORT_SHA=$(echo ${{ github.sha }} | cut -c1-8)" >> $GITHUB_ENV

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: seriainme/toast:latest



tags: |
seriainme/${{ secrets.DOCKER_REPOSITORY }}:latest
seriainme/${{ secrets.DOCKER_REPOSITORY }}:${{ env.SHORT_SHA }}
2 changes: 1 addition & 1 deletion spider.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ def __call__(self, *args, **kwargs):
today = arrow.now().format('YYYY-MM-DD')

# Print the message with today's date
print(f'fxx my job {today} n my boss test')
print(f'fxx my job {today} n my boss test now for cicd ')

0 comments on commit 38c72f1

Please sign in to comment.