Skip to content

Commit

Permalink
Added build process.
Browse files Browse the repository at this point in the history
  • Loading branch information
xivk committed May 30, 2024
1 parent e3a34d0 commit 3e71827
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: production

on:
push:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Login to Docker Hub
run: echo ${{ secrets.DOCKER_HUB_TOKEN }} | docker login -u anywaysbot --password-stdin

- name: Build the Docker image
run: docker build . --file Dockerfile --tag anywaysopen/cityflows-api:prod --tag anywaysopen/cityflows-api:prod-0.$GITHUB_RUN_NUMBER

- name: Publish the image.
run: docker push anywaysopen/cityflows-api:prod
- name: Publish the image.
run: docker push anywaysopen/cityflows-api:prod-0.$GITHUB_RUN_NUMBER


0 comments on commit 3e71827

Please sign in to comment.