Skip to content

Commit

Permalink
Create docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
feiticeiro-tec authored Jan 15, 2024
1 parent 9d5ebb8 commit 1391e23
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Docker Image CI

on:
push:
tags:
- 'v*'


jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Deploy to docker
run: docker login -u ${{ secrets.usernameDocker }} -p ${{ secrets.passwordDocker }}

- name: Build the Docker image
run: docker build . --file Dockerfile --tag ${{ secrets.imageName }}:${GITHUB_REF#refs/tags/}

0 comments on commit 1391e23

Please sign in to comment.