Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sorokinmax committed Dec 29, 2023
2 parents f4167fe + c4c800d commit f4295e5
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build and Publish

on:
workflow_dispatch:

jobs:
# define job to build and publish docker image
build-and-push-docker-image:
name: Build Docker image and push to repositories
runs-on: ubuntu-latest

# steps to perform in job
steps:
- name: Checkout code
uses: actions/checkout@v3.1.0

- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build image and push to Docker Hub
uses: docker/build-push-action@v2
with:
# relative path to the place where source code with Dockerfile is located
context: .
tags: |
sorokinmx/android-store:latest, sorokinmx/android-store:${{ github.run_number }}
push: true

0 comments on commit f4295e5

Please sign in to comment.