Skip to content

Commit

Permalink
Merge pull request #27 from Anant/feature/ActionsCI
Browse files Browse the repository at this point in the history
Feature/actions ci
  • Loading branch information
anomnaco authored Aug 26, 2024
2 parents ffa8ae5 + 680541d commit 1bfea47
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build_and_push_docker_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Docker Image CI

on:
push:
branches:
- main

jobs:

build:

runs-on: ubuntu-latest

steps:
- name: Checkout repository
- uses: actions/checkout@v4

- name: Build the Docker image
run: docker build --tag cass-stac --no-cache .

- name: Save images to tags
run: |
docker tag cass-stac anantcorp/cass-stac:${{ github.run_number }}
docker tag cass-stac anantcorp/cass-stac:latest
- name: Push images to Docker Hub
run: |
echo "::add-mask::${{ secrets.DOCKERHUB_USER }}"
echo "::add-mask::${{ secrets.DOCKERHUB_TOKEN }}"
docker login -u ${{ secrets.DOCKERHUB_USER }} -p ${{ secrets.DOCKERHUB_TOKEN }}
docker push anantcorp/cass-stac:${{ github.run_number }}
docker push anantcorp/cass-stac:latest

0 comments on commit 1bfea47

Please sign in to comment.