Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit abefbf9

Browse files
Add HF perceiver and Dockerize (#119)
* Add HF perceiver * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix import torch * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Add torch to requirements * Add docker push * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update env file * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update env file Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 188332e commit abefbf9

File tree

8 files changed

+293
-219
lines changed

8 files changed

+293
-219
lines changed

.github/workflows/docker.yaml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
name: Publish Docker image
7+
8+
on:
9+
[push]
10+
# release:
11+
# types: [published]
12+
13+
jobs:
14+
push_to_registries:
15+
name: Push Docker image to multiple registries
16+
runs-on: ubuntu-latest
17+
permissions:
18+
packages: write
19+
contents: read
20+
steps:
21+
- name: Check out the repo
22+
uses: actions/checkout@v2
23+
24+
- name: Log in to Docker Hub
25+
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
26+
with:
27+
username: ${{ secrets.DOCKERUSERNAME }}
28+
password: ${{ secrets.DOCKERPASSWORD }}
29+
30+
- name: Log in to the Container registry
31+
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
32+
with:
33+
registry: ghcr.io
34+
username: ${{ github.actor }}
35+
password: ${{ secrets.GITHUB_TOKEN }}
36+
37+
- name: Extract metadata (tags, labels) for Docker
38+
id: meta
39+
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
40+
with:
41+
images: |
42+
jacobbieker/satflow
43+
ghcr.io/${{ github.repository }}
44+
45+
- name: Build and push Docker images
46+
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
47+
with:
48+
context: .
49+
push: true
50+
tags: ${{ steps.meta.outputs.tags }}
51+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)