Skip to content

Commit

Permalink
Migrate to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Spedoske committed Aug 7, 2023
1 parent 7036053 commit 447170a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 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:
branches: [ "master" ]

jobs:
build:
runs-on: ubuntu-22.04
env:
tag: ${{ secrets.CI_REGISTRY }}/geekpie/passwordle-backend:latest
steps:
- uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
registry: ${{ secrets.CI_REGISTRY }}
username: ${{ secrets.CI_REGISTRY_USER }}
password: ${{ secrets.CI_REGISTRY_PASSWORD }}
- name: Build the Docker image
run: docker build . --file Dockerfile --tag $tag
- name: Push the Docker image
run: docker push $tag
11 changes: 0 additions & 11 deletions .gitlab-ci.yml

This file was deleted.

0 comments on commit 447170a

Please sign in to comment.