Skip to content

Commit

Permalink
🌈 First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
fungiboletus committed Feb 7, 2023
0 parents commit 8df3e42
Show file tree
Hide file tree
Showing 9 changed files with 671 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/container-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Container Image

on:
push:
branches:
- main
- dev
tags:
- "*"

env:
REGISTRY: ghcr.io
IMAGE_NAME: sintef/www-redirector

jobs:
build-and-push-image:
name: Build and push container image
runs-on: ubuntu-latest

permissions:
contents: read
packages: write

steps:
- name: Check out repo
uses: actions/checkout@v3

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for pre process image
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push
uses: docker/build-push-action@v3
with:
context: ./
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
45 changes: 45 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug executable 'www-redirector'",
"cargo": {
"args": [
"build",
"--bin=www-redirector",
"--package=www-redirector"
],
"filter": {
"name": "www-redirector",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in executable 'www-redirector'",
"cargo": {
"args": [
"test",
"--no-run",
"--bin=www-redirector",
"--package=www-redirector"
],
"filter": {
"name": "www-redirector",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
}
]
}
Loading

0 comments on commit 8df3e42

Please sign in to comment.