-
Notifications
You must be signed in to change notification settings - Fork 0
25 lines (25 loc) · 921 Bytes
/
Copy pathdeploy.yml
File metadata and controls
25 lines (25 loc) · 921 Bytes
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
name: Publish package on GitHub
env:
IMAGE_TAG: "ghcr.io/standout/integrationer-steps-ruby-runner:${{ github.event.release.tag_name }}"
on:
release:
types: [published]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Login to docker repository
run: echo ${{ secrets.GH_PACKAGES_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Build docker image
run: |
docker pull ghcr.io/standout/integrationer-steps-ruby-runner:latest
docker build \
-t $IMAGE_TAG \
-t ghcr.io/standout/integrationer-steps-ruby-runner:latest \
--cache-from=ghcr.io/standout/integrationer-steps-ruby-runner:latest \
.
- name: Release docker image
run: |
docker push $IMAGE_TAG
docker push ghcr.io/standout/integrationer-steps-ruby-runner:latest