Skip to content

Commit

Permalink
Adds Github Actions config and removes Gitlab CI (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcaracuel authored Jun 1, 2023
1 parent 58cfb45 commit a30203e
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 41 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build Docker image
on:
workflow_dispatch:
push:
tags:
- '*'
branches:
- main
- master

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build-docker:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log into the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push the Docker image
uses: docker/build-push-action@v4
with:
context: .
file: src/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
41 changes: 0 additions & 41 deletions .gitlab-ci.yml

This file was deleted.

0 comments on commit a30203e

Please sign in to comment.