Skip to content

Commit

Permalink
test flow
Browse files Browse the repository at this point in the history
  • Loading branch information
sam4t committed Mar 7, 2023
1 parent 352e1fc commit ba680af
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
name: Push Docker image to Github Registry
runs-on: ubuntu-latest
steps:
- name: Check out the repo
Expand All @@ -17,7 +17,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to GitHub Container Registry
- name: Login to Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,19 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: false
push: true
tags: |
ghcr.io/babbel/ruru-lambda:latest
ghcr.io/babbel/ruru-lambda:build-ruby2.7
ghcr.io/babbel/ruru-lambda:${{ github.event.release.tag_name }}

0 comments on commit ba680af

Please sign in to comment.