Skip to content

Commit ba680af

Browse files
committed
test flow
1 parent 352e1fc commit ba680af

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.github/workflows/publish.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55

66
jobs:
77
push_to_registry:
8-
name: Push Docker image to Docker Hub
8+
name: Push Docker image to Github Registry
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Check out the repo
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Docker Buildx
1818
uses: docker/setup-buildx-action@v1
1919

20-
- name: Login to GitHub Container Registry
20+
- name: Login to Container Registry
2121
uses: docker/login-action@v2
2222
with:
2323
registry: ghcr.io

.github/workflows/test.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,19 @@ jobs:
1515
- name: Set up Docker Buildx
1616
uses: docker/setup-buildx-action@v1
1717

18+
- name: Login to Container Registry
19+
uses: docker/login-action@v2
20+
with:
21+
registry: ghcr.io
22+
username: ${{ github.repository_owner }}
23+
password: ${{ secrets.GITHUB_TOKEN }}
24+
1825
- name: Build and push
1926
id: docker_build
2027
uses: docker/build-push-action@v2
2128
with:
22-
push: false
29+
push: true
30+
tags: |
31+
ghcr.io/babbel/ruru-lambda:latest
32+
ghcr.io/babbel/ruru-lambda:build-ruby2.7
33+
ghcr.io/babbel/ruru-lambda:${{ github.event.release.tag_name }}

0 commit comments

Comments
 (0)