Skip to content

ci: replace Travis CI with GH Actions #1

ci: replace Travis CI with GH Actions

ci: replace Travis CI with GH Actions #1

name: drs-filer
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
jobs:
publish_to_docker:
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/dev'
name: Build and publish to Docker
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Login to Docker Hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/[email protected]
with:
images: elixircloud/drs-filer
- name: Build and push Docker images
uses: docker/[email protected]
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}