Skip to content

Commit 889ce42

Browse files
committed
Switch to GitHub Actions.
1 parent a2b931c commit 889ce42

File tree

4 files changed

+37
-24
lines changed

4 files changed

+37
-24
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build and Publish
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
build-and-publish:
8+
name: Build and Publish
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v4
13+
14+
- name: Log in to Docker Hub
15+
uses: docker/login-action@v3
16+
with:
17+
username: ${{ secrets.DOCKERHUB_USERNAME }}
18+
password: ${{ secrets.DOCKERHUB_TOKEN }}
19+
20+
- name: Extract metadata (tags, labels) for Docker
21+
id: meta
22+
uses: docker/metadata-action@v5
23+
with:
24+
images: ${{ vars.DOCKER_ORG }}/${{ github.event.repository.name }}
25+
tags: |
26+
type=ref,event=branch
27+
type=ref,event=tag
28+
# set latest tag for master branch
29+
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
30+
31+
- name: Build and push Docker image
32+
uses: docker/build-push-action@v5
33+
with:
34+
context: .
35+
push: true
36+
tags: ${{ steps.meta.outputs.tags }}
37+
labels: ${{ steps.meta.outputs.labels }}

codeship-services.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

codeship-steps.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

dockercfg.encrypted

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)