forked from AllenNeuralDynamics/foraging-behavior-browser
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (36 loc) · 1.22 KB
/
publish.yaml
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
name: Tag and publish
on:
push:
branches:
- main
jobs:
# tag:
# uses: AllenNeuralDynamics/aind-github-actions/.github/workflows/tag.yml@main
# secrets:
# SERVICE_TOKEN: ${{ secrets.SERVICE_TOKEN }} # required
publish:
runs-on: ubuntu-latest
# needs: tag
steps:
- uses: actions/checkout@v3
- name: Pull latest changes
run: git pull origin main
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to Github Packages
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build image and push to GitHub Container Registry
uses: docker/build-push-action@v3
with:
# relative path to the place where source code with Dockerfile is located
context: .
push: true
tags: ghcr.io/allenneuraldynamics/foraging-behavior-browser-test:latest
# tags: |
# ghcr.io/allenneuraldynamics/foraging-behavior-browser-test:${{ needs.tag.outputs.new_version }}
# ghcr.io/allenneuraldynamics/foraging-behavior-browser-test:latest