-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (37 loc) · 1.05 KB
/
docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Docker
on:
push:
# Publish `master` as Docker `latest` image.
branches:
- master
# Publish `v1.2.3` tags as releases.
tags:
- v*
# Run tests for any PRs.
pull_request:
jobs:
# Run tests.
# See also https://docs.docker.com/docker-hub/builds/automated-testing/
build:
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v2
name: Check out code
- name: Clean
run: |
sudo swapoff -a
sudo rm -f /swapfile
sudo apt clean
sudo apt autoremove -y --purge
docker rmi $(docker image ls -aq)
df -h
- uses: mr-smithers-excellent/docker-build-push@v3
name: Build & push Docker image
with:
image: kstawiski/omicselector
tag: latest
registry: docker.io
dockerfile: Dockerfile.cpu
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}