Skip to content

Commit 2ee39be

Browse files
committed
🔧 Fix Primer3 Docker build with updated actions
1 parent 1583c84 commit 2ee39be

1 file changed

Lines changed: 14 additions & 19 deletions

File tree

.github/workflows/main.yml

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,36 @@
1-
# This is a basic workflow to help you get started with Actions
2-
31
name: Primer3
42

5-
# Controls when the action will run.
63
on:
7-
# Triggers the workflow on push or pull request events but only for the master branch
84
push:
95
branches: [master]
106
pull_request:
117
branches: [master]
12-
13-
# Allows you to run this workflow manually from the Actions tab
148
workflow_dispatch:
159

16-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1710
jobs:
18-
# This workflow contains a single job called "build"
1911
build:
20-
# The type of runner that the job will run on
2112
runs-on: ubuntu-latest
22-
23-
# Steps represent a sequence of tasks that will be executed as part of the job
2413
steps:
25-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
26-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
2715

28-
# Runs a set of commands using the runners shell
2916
- name: Build Primer3
3017
run: |
3118
cd lambda
3219
make
3320
34-
- name: Build and Publish to Registry
35-
uses: elgohr/Publish-Docker-Github-Action@master
21+
- name: Set up Docker Buildx
22+
uses: docker/setup-buildx-action@v3
23+
24+
- name: Login to Docker Hub
25+
if: github.event_name != 'pull_request'
26+
uses: docker/login-action@v3
3627
with:
37-
name: ${{secrets.DOCKER_USERNAME}}/mutation-maker-primer3
3828
username: ${{ secrets.DOCKER_USERNAME }}
3929
password: ${{ secrets.DOCKER_PASSWORD }}
40-
dockerfile: Dockerfile
41-
workdir: lambda
30+
31+
- name: Build and push
32+
uses: docker/build-push-action@v5
33+
with:
34+
context: ./lambda
35+
push: ${{ github.event_name != 'pull_request' }}
36+
tags: ${{ secrets.DOCKER_USERNAME }}/mutation-maker-primer3:latest

0 commit comments

Comments
 (0)